mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
window: Set the surface to NULL when unmanaging
This commit is contained in:
parent
789608b637
commit
024652bfb4
@ -1215,7 +1215,10 @@ meta_window_unmanage (MetaWindow *window,
|
||||
/* This needs to happen for both Wayland and XWayland clients,
|
||||
* so it can't be in MetaWindowWayland. */
|
||||
if (window->surface)
|
||||
meta_wayland_surface_set_window (window->surface, NULL);
|
||||
{
|
||||
meta_wayland_surface_set_window (window->surface, NULL);
|
||||
window->surface = NULL;
|
||||
}
|
||||
|
||||
if (window->visible_to_compositor)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user