mirror of
https://github.com/swaywm/sway.git
synced 2026-04-21 06:46:22 -04:00
xwayland: only restack windows when activating them
This commit is contained in:
parent
3bc164216f
commit
7669241754
1 changed files with 6 additions and 2 deletions
|
|
@ -277,7 +277,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);
|
||||
}
|
||||
|
||||
struct sway_xwayland_unmanaged *unmanaged;
|
||||
wl_list_for_each(unmanaged, &root->xwayland_unmanaged, link) {
|
||||
|
|
@ -285,7 +287,9 @@ static void set_activated(struct sway_view *view, bool activated) {
|
|||
if (!is_surface_transient_for(unmanaged_surface, view)) {
|
||||
continue;
|
||||
}
|
||||
wlr_xwayland_surface_restack(unmanaged_surface, NULL, XCB_STACK_MODE_ABOVE);
|
||||
if (activated) {
|
||||
wlr_xwayland_surface_restack(unmanaged_surface, NULL, XCB_STACK_MODE_ABOVE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue