mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
wip: scene: skip sub-surface tree reconfiguration if unchanged
This commit is contained in:
parent
baf35a89f1
commit
287e75443d
1 changed files with 4 additions and 2 deletions
|
|
@ -159,8 +159,10 @@ static void subsurface_tree_handle_surface_commit(struct wl_listener *listener,
|
||||||
struct wlr_scene_subsurface_tree *subsurface_tree =
|
struct wlr_scene_subsurface_tree *subsurface_tree =
|
||||||
wl_container_of(listener, subsurface_tree, surface_commit);
|
wl_container_of(listener, subsurface_tree, surface_commit);
|
||||||
|
|
||||||
// TODO: only do this on subsurface order or position change
|
// TODO: also need to do this on sub-surface position change
|
||||||
subsurface_tree_reconfigure(subsurface_tree);
|
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,
|
static void subsurface_tree_handle_subsurface_destroy(struct wl_listener *listener,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue