From ae2f3ecb6824e168083580a601af53d6c9544b5d Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Sun, 2 May 2021 12:50:36 -0400 Subject: xwm: implement _NET_CLIENT_LIST_STACKING This property is present on all modern X11 instances. The nonpresence of it requires applications to fall back to XQueryTree-based logic to determine stacking logic (e.g., to determine what surface should get Xdnd events). These code paths are effectively untested nowadays, so this makes it more likely for wlroots to "break" applications. For instance, the XQueryTree fallback path has been broken in Chromium for the last 10 years. It's easy enough to maintain this property, so let's just do it. Fixes #2889. --- include/wlr/xwayland.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/xwayland.h b/include/wlr/xwayland.h index 7dcb3935..6a83e08a 100644 --- a/include/wlr/xwayland.h +++ b/include/wlr/xwayland.h @@ -121,7 +121,7 @@ struct wlr_xwayland_surface_size_hints { /** * This represents the input focus described as follows: - * + * * https://www.x.org/releases/X11R7.6/doc/xorg-docs/specs/ICCCM/icccm.html#input_focus */ enum wlr_xwayland_icccm_input_model { @@ -146,6 +146,7 @@ struct wlr_xwayland_surface { uint32_t surface_id; struct wl_list link; + struct wl_list stack_link; struct wl_list unpaired_link; struct wlr_surface *surface; -- cgit v1.2.3