wlr_scene: Introduce wlr_scene_subsurface_tree.is_visible and event

This commit is contained in:
Alexander Orzechowski 2024-07-04 13:51:25 -04:00
parent 327ae35307
commit 21a4df624f
2 changed files with 44 additions and 0 deletions

View file

@ -134,10 +134,16 @@ struct wlr_scene_surface {
struct wlr_scene_subsurface_tree_surface;
struct wlr_scene_subsurface_tree {
struct wlr_scene_tree *tree;
bool is_visible;
struct {
struct wl_signal visibility;
} events;
// private state
struct wl_list surfaces;
uint16_t visible_surfaces;
struct wlr_scene_subsurface_tree_surface *root;
};