mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 07:30:42 -05:00
surface-actor: Restore drop shadow with server-side decorations
Commit 510cbef15a
changed the logic in `handle_update()` for X11 window
actors to return early if the surface is not an X11 surface.
That works fine for plain Xorg, but on Xwayland, the surface is actually
a Wayland surface, therefore the function returns early before updating
the drop shadows of server-side decorations for X11 windows.
Change the test logic to restore drops shadows with Xwayland windows.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1384
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1358
This commit is contained in:
parent
d0ee02fae7
commit
ca64a308eb
@ -1223,7 +1223,7 @@ handle_updates (MetaWindowActorX11 *actor_x11)
|
||||
meta_surface_actor_x11_handle_updates (surface_x11);
|
||||
}
|
||||
|
||||
if (!META_IS_SURFACE_ACTOR_X11 (surface) ||
|
||||
if (META_IS_SURFACE_ACTOR_X11 (surface) &&
|
||||
!meta_surface_actor_x11_is_visible (META_SURFACE_ACTOR_X11 (surface)))
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user