mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 14:58:14 +02:00
xwayland: Do not use manual redirect windows as surface window
While walking the window tree looking for the surface window to use, we should ignore windows using manual redirection. If a client manually redirects a window, it has control over how the contents of that window are presented. It's not safe to present them directly to the Wayland compositor. v2: break instead of continue, reword commit message (Michel) Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Fixes:3a0fc268- xwayland: Add xwl_window::surface_window Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1677 Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1679 Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1564> (cherry picked from commit0509b13fa2)
This commit is contained in:
parent
989562fdd8
commit
9ca09af9e3
1 changed files with 3 additions and 0 deletions
|
|
@ -1365,6 +1365,9 @@ xwl_window_update_surface_window(struct xwl_window *xwl_window)
|
|||
if (window->drawable.depth == 32)
|
||||
continue;
|
||||
|
||||
if (window->redirectDraw == RedirectDrawManual)
|
||||
break;
|
||||
|
||||
surface_window = window;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue