window: Set the surface to NULL when unmanaging
This commit is contained in:
parent
789608b637
commit
024652bfb4
1 changed files with 4 additions and 1 deletions
|
@ -1215,7 +1215,10 @@ meta_window_unmanage (MetaWindow *window,
|
||||||
/* This needs to happen for both Wayland and XWayland clients,
|
/* This needs to happen for both Wayland and XWayland clients,
|
||||||
* so it can't be in MetaWindowWayland. */
|
* so it can't be in MetaWindowWayland. */
|
||||||
if (window->surface)
|
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)
|
if (window->visible_to_compositor)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue