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
This commit is contained in:
Adel Gadllah 2014-03-27 13:57:53 +01:00
parent cd905a34fb
commit 6eeaf09ab7

View File

@ -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