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:
parent
cd905a34fb
commit
6eeaf09ab7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user