From 6eeaf09ab70a001d30d3f72599963d7448ca5f40 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Thu, 27 Mar 2014 13:57:53 +0100 Subject: [PATCH] compositor: Don't call process_damage if the window is gone We might get a damage event for an already unmanaged window calling process_damage is pointless and causes a crash so simply skip that case. https://bugzilla.gnome.org/show_bug.cgi?id=727115 --- src/compositor/compositor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index 22eec9e65..54fcd4482 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -930,7 +930,8 @@ meta_compositor_process_event (MetaCompositor *compositor, window = meta_display_lookup_x_window (compositor->display, xwin); } - process_damage (compositor, (XDamageNotifyEvent *) event, window); + if (window) + process_damage (compositor, (XDamageNotifyEvent *) event, window); } /* Clutter needs to know about MapNotify events otherwise it will