window/wayland: Don't try to resize window on tear down

When terminating mutter running as a display server, don't try to resize
maximized windows when unmanaging, as at this point, they will have no
MetaWaylandSurface. Originally this was done instead of setting the
net_wm_state to not mess with future window managers, but when we're a
Wayland compositor, this does not matter.

https://bugzilla.gnome.org/show_bug.cgi?id=782156
This commit is contained in:
Jonas Ådahl 2017-04-21 17:40:25 +08:00
parent 7801df7ef6
commit a8ceceed1a

View File

@ -2957,7 +2957,11 @@ unmaximize_window_before_freeing (MetaWindow *window)
window->rect = window->saved_rect; window->rect = window->saved_rect;
set_net_wm_state (window); set_net_wm_state (window);
} }
else if (window->screen->closing) /* See bug #358042 */ else if (window->screen->closing /* See bug #358042 */
#ifdef HAVE_WAYLAND
&& !meta_is_wayland_compositor ()
#endif
)
{ {
/* Do NOT update net_wm_state: this screen is closing, /* Do NOT update net_wm_state: this screen is closing,
* it likely will be managed by another window manager * it likely will be managed by another window manager