Merge branch 'wip/smcv/wayland-configure-positive-sizes' into 'gtk-3-24'

wayland: Guard against nonsense sizes being configured

See merge request GNOME/gtk!1639
This commit is contained in:
Matthias Clasen 2020-04-06 13:00:30 +00:00
commit dc79e07228

View File

@ -1076,6 +1076,9 @@ gdk_wayland_window_configure (GdkWindow *window,
GdkDisplay *display;
GdkEvent *event;
g_return_if_fail (width > 0);
g_return_if_fail (height > 0);
event = gdk_event_new (GDK_CONFIGURE);
event->configure.window = g_object_ref (window);
event->configure.send_event = FALSE;