wayland: configure clients that resize themselves

Make sure the wayland backend sets a new geometry when the client
resizes itself, otherwise the compositor won't be notified and may
revert to the old size on state changes.

Thanks to Jasper St. Pierre <jstpierre@mecheye.net> who pointed out the
problem in gtk+.

bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=755051
This commit is contained in:
Olivier Fourdan 2015-10-27 18:05:39 +01:00
parent 37eb5c08a4
commit 3058c3e6a9

View File

@ -2387,10 +2387,6 @@ gdk_wayland_window_set_shadow_width (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
if (left == impl->margin_left && right == impl->margin_right &&
top == impl->margin_top && bottom == impl->margin_bottom)
return;
/* Reconfigure window to keep the same window geometry */
new_width = window->width -
(impl->margin_left + impl->margin_right) + (left + right);