Merge branch 'subsurfaces-state-flag-v2' into 'master'

surface: add WLR_SURFACE_STATE_SUBSURFACES

See merge request wlroots/wlroots!4477
This commit is contained in:
Simon Ser 2026-04-02 01:57:03 +00:00
commit b96a67a5a1
3 changed files with 8 additions and 2 deletions

View file

@ -159,8 +159,10 @@ static void subsurface_tree_handle_surface_commit(struct wl_listener *listener,
struct wlr_scene_subsurface_tree *subsurface_tree =
wl_container_of(listener, subsurface_tree, surface_commit);
// TODO: only do this on subsurface order or position change
subsurface_tree_reconfigure(subsurface_tree);
// TODO: also need to do this on sub-surface position change
if (subsurface_tree->surface->current.committed & WLR_SURFACE_STATE_SUBSURFACES) {
subsurface_tree_reconfigure(subsurface_tree);
}
}
static void subsurface_tree_handle_subsurface_destroy(struct wl_listener *listener,