mirror of
https://github.com/brl/mutter.git
synced 2025-01-22 17:38:56 +00:00
compositor: Fix crash when adding a window with an opaque region
If _NET_WM_OPAQUE_REGION is set when the window is first mapped, the initial load_properties will happen before the window actor is created, and we'll have a call to meta_compositor_window_shape_changed. Just fizzle this call out instead of doing anything fancy, as we'll pick up the opaque region when the window actor is eventually created. https://bugzilla.gnome.org/show_bug.cgi?id=695813
This commit is contained in:
parent
cce5ad7cc0
commit
1f905bd0e2
@ -784,6 +784,9 @@ meta_compositor_window_shape_changed (MetaCompositor *compositor,
|
||||
{
|
||||
MetaWindowActor *window_actor;
|
||||
window_actor = META_WINDOW_ACTOR (meta_window_get_compositor_private (window));
|
||||
if (!window_actor)
|
||||
return;
|
||||
|
||||
meta_window_actor_update_shape (window_actor);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user