mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
window-actor: Don't update suspend state if no window
If the window is gone, don't try to update it. This might happen on
unmap animations with active clones.
Fixes: 9a2c8b2592
("window: Add suspend state")
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2984
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3213>
This commit is contained in:
parent
cb6290832e
commit
87b7b073d3
@ -478,7 +478,8 @@ on_decloned (ClutterActor *actor,
|
||||
meta_window_actor_get_instance_private (window_actor);
|
||||
|
||||
g_signal_handlers_disconnect_by_func (clone, on_clone_notify_mapped, actor);
|
||||
if (clutter_actor_is_mapped (CLUTTER_ACTOR (clone)))
|
||||
if (clutter_actor_is_mapped (CLUTTER_ACTOR (clone)) &&
|
||||
priv->window)
|
||||
meta_window_uninhibit_suspend_state (priv->window);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user