compositor: make sync_updates_frozen no-op for unmanaged windows
Right now meta_compositor_sync_updates_frozen will crash if it's called on a window that's not yet managed. For future convenience, make it be a no-op instead, in the same way: meta_compositor_window_shape_changed and meta_compositor_window_opacity_changed are no-ops for unmanaged windows.
This commit is contained in:
parent
24b9f2fabc
commit
0d1cee5123
@ -684,6 +684,9 @@ meta_compositor_sync_updates_frozen (MetaCompositor *compositor,
|
|||||||
MetaWindow *window)
|
MetaWindow *window)
|
||||||
{
|
{
|
||||||
MetaWindowActor *window_actor = META_WINDOW_ACTOR (meta_window_get_compositor_private (window));
|
MetaWindowActor *window_actor = META_WINDOW_ACTOR (meta_window_get_compositor_private (window));
|
||||||
|
if (!window_actor)
|
||||||
|
return;
|
||||||
|
|
||||||
meta_window_actor_sync_updates_frozen (window_actor);
|
meta_window_actor_sync_updates_frozen (window_actor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user