sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 7e74a4914261cf32c45017521960adf7ff6dac8f
parent 4d4c88f0a73f6ee3da1c99355f04362ef2ad68c9
Author: Simon Ser <contact@emersion.fr>
Date:   Mon, 29 Jul 2024 20:14:18 +0200

desktop/xwayland: don't restack when marking window as inactive

daaec72ac01f ("desktop/xwayland: restack surface upon activation")
has updated Sway for wlroots commit bfc69decdd04 ("xwm: do not
restack surfaces on activation"). However, it unconditionally
restacks the window above all other windows even if marking the
window as inactive.

Closes: https://github.com/swaywm/sway/issues/7974

Diffstat:
Msway/desktop/xwayland.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c @@ -289,7 +289,9 @@ static void set_activated(struct sway_view *view, bool activated) { } wlr_xwayland_surface_activate(surface, activated); - wlr_xwayland_surface_restack(surface, NULL, XCB_STACK_MODE_ABOVE); + if (activated) { + wlr_xwayland_surface_restack(surface, NULL, XCB_STACK_MODE_ABOVE); + } } static void set_tiled(struct sway_view *view, bool tiled) {