scene: add knob to turn off Xwayland surface restacking

This is useful in these cases:

- The same surface is added to two different scene-graphs. wlroots
  can't figure out on its own which scene-graph should drive the
  Xwayland stacking.
- A compositor uses multiple Xwayland servers (e.g. one per app).
  wlroots will try to restack surfaces from different Xwayland
  instances and this will not go well.
This commit is contained in:
Simon Ser 2025-07-08 15:00:57 +02:00 committed by Isaac Freund
parent b094f8aeb3
commit 2c64b30a67
2 changed files with 12 additions and 2 deletions

View file

@ -105,6 +105,8 @@ struct wlr_scene {
struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1;
struct wlr_color_manager_v1 *color_manager_v1;
bool restack_xwayland_surfaces;
struct {
struct wl_listener linux_dmabuf_v1_destroy;
struct wl_listener gamma_control_manager_v1_destroy;