forked from AuroraMiddleware/gtk
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:
parent
0056d3a6ad
commit
12fc77ad98
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user