xserver/hw
Olivier Fourdan 9ca09af9e3 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 commit 0509b13fa2)
2026-01-25 10:39:53 -08:00
..
kdrive rename remaining RT_* defines to X11_RESTYPE_* 2026-01-19 12:48:30 -08:00
vfb Xvfb: Support up to 13 mouse buttons 2024-01-08 11:16:11 +00:00
xfree86 modesetting/dri2: Remove always true ifdef 2026-01-25 10:39:53 -08:00
xnest rename remaining RT_* defines to X11_RESTYPE_* 2026-01-19 12:48:30 -08:00
xquartz xquartz: Remove invalid Unicode sequence 2026-01-25 10:39:53 -08:00
xwayland xwayland: Do not use manual redirect windows as surface window 2026-01-25 10:39:53 -08:00
xwin rename remaining RT_* defines to X11_RESTYPE_* 2026-01-19 12:48:30 -08:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00