[mutter/wip/ssd-black-borders-fix: 20/22] compositor: make sync_updates_frozen no-op for unmanaged windows
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/ssd-black-borders-fix: 20/22] compositor: make sync_updates_frozen no-op for unmanaged windows
- Date: Thu, 29 Mar 2018 14:38:29 +0000 (UTC)
commit 0d1cee51238705c6f5a7525ca32ed13b686bcf81
Author: Ray Strode <rstrode redhat com>
Date: Fri Mar 16 13:18:39 2018 -0400
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.
src/compositor/compositor.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index aa49347c9..696e4ebce 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -684,6 +684,9 @@ meta_compositor_sync_updates_frozen (MetaCompositor *compositor,
MetaWindow *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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]