Merge branch 'X11-surface' into 'master'

x11: fix crash on idle compute size without layout

See merge request GNOME/gtk!3031
This commit is contained in:
Matthias Clasen 2021-01-06 22:13:02 +00:00
commit 0d99ef7cee

View File

@ -291,7 +291,7 @@ compute_toplevel_size (GdkSurface *surface,
GdkGeometry geometry;
GdkSurfaceHints mask;
if (gdk_toplevel_layout_get_resizable (impl->toplevel_layout))
if (!impl->toplevel_layout || gdk_toplevel_layout_get_resizable (impl->toplevel_layout))
{
geometry.min_width = size.min_width;
geometry.min_height = size.min_height;