Merge branch 'wip/dont-set-invalid-xdg-surface-geometry' into 'gtk-3-24'
wayland: Bail loudly if invalid geometry is set See merge request GNOME/gtk!2808
This commit is contained in:
@@ -1349,6 +1349,9 @@ gdk_wayland_window_sync_margin (GdkWindow *window)
|
||||
return;
|
||||
|
||||
gdk_wayland_window_get_window_geometry (window, &geometry);
|
||||
|
||||
g_return_if_fail (geometry.width > 0 && geometry.height > 0);
|
||||
|
||||
gdk_window_set_geometry_hints (window,
|
||||
&impl->geometry_hints,
|
||||
impl->geometry_mask);
|
||||
|
||||
Reference in New Issue
Block a user