mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 16:01:27 +00:00
desktop/xwayland: don't restack when marking window as inactive
daaec72ac0
("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 commit7e74a49142
)
This commit is contained in:
parent
100f92a189
commit
53ffc1119a
|
@ -289,7 +289,9 @@ static void set_activated(struct sway_view *view, bool activated) {
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_xwayland_surface_activate(surface, 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) {
|
static void set_tiled(struct sway_view *view, bool tiled) {
|
||||||
|
|
Loading…
Reference in a new issue