chase wlroots: let scene restack xwayland surfaces (MR 4756)

Ref: 1133bc15ceb2c2bcb6df692acda6bfa39a292ab5
("Transparently restack xwayland surfaces")

In addition, MR 4772 makes sure the hidden windows are stacked at the
bottom, just like what we did with XWAYLAND_VIEW_HIDDEN.
This commit is contained in:
tokyo4j 2025-05-19 15:03:41 +09:00 committed by Johan Malm
parent 1eaba4af33
commit 261126fcd0
5 changed files with 1 additions and 121 deletions

View file

@ -2283,12 +2283,6 @@ view_move_to_front(struct view *view)
move_to_front(view);
}
#if HAVE_XWAYLAND
if (view->type == LAB_XWAYLAND_VIEW) {
xwayland_adjust_stacking_order(view->server);
}
#endif
cursor_update_focus(view->server);
desktop_update_top_layer_visibility(view->server);
}
@ -2303,12 +2297,6 @@ view_move_to_back(struct view *view)
for_each_subview(root, move_to_back);
move_to_back(root);
#if HAVE_XWAYLAND
if (view->type == LAB_XWAYLAND_VIEW) {
xwayland_adjust_stacking_order(view->server);
}
#endif
cursor_update_focus(view->server);
desktop_update_top_layer_visibility(view->server);
}
@ -2491,12 +2479,6 @@ view_set_shade(struct view *view, bool shaded)
view->shaded = shaded;
ssd_enable_shade(view->ssd, view->shaded);
wlr_scene_node_set_enabled(&view->content_tree->node, !view->shaded);
#if HAVE_XWAYLAND
if (view->type == LAB_XWAYLAND_VIEW) {
xwayland_adjust_stacking_order(view->server);
}
#endif
}
void