diff options
| author | Simon Ser <contact@emersion.fr> | 2024-07-29 20:14:18 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2024-09-20 19:41:52 +0200 |
| commit | 53ffc1119a540134119e2094018d8a376d07aeaf (patch) | |
| tree | 41e876b2271790c1ee98c4cfd906a3bb53a2527e | |
| parent | 100f92a189b89e3c3199c87d4884a101e5c99742 (diff) | |
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
(cherry picked from commit 7e74a4914261cf32c45017521960adf7ff6dac8f)
| -rw-r--r-- | sway/desktop/xwayland.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 270cf08f..9a661405 100644 --- 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) { |
