mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +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,
|
/* 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 New Issue
Block a user