diff --git a/src/core/window.c b/src/core/window.c index e35ed0838..f15392df7 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2957,7 +2957,11 @@ unmaximize_window_before_freeing (MetaWindow *window) window->rect = window->saved_rect; 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, * it likely will be managed by another window manager