gdkwindow-wayland: Don't post CONFIGURE events for the same size

The Wayland compositor is completely allowed to send us configure
events for the same size, and this validly happens if we're changing
states. Fizzle these out.
This commit is contained in:
Jasper St. Pierre 2014-06-19 14:31:23 -04:00
parent 0056d3a6ad
commit 12fc77ad98

View File

@ -596,11 +596,11 @@ gdk_wayland_window_configure (GdkWindow *window,
GdkDisplay *display;
GdkEvent *event;
if (window->width == width && window->height == height)
return;
display = gdk_window_get_display (window);
/* TODO: Only generate a configure event if width/height/scale have actually
* changed?
*/
event = gdk_event_new (GDK_CONFIGURE);
event->configure.window = window;
event->configure.send_event = FALSE;