aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-13 01:25:34 -0500
committerIsaac Freund <mail@isaacfreund.com>2023-11-14 17:27:08 +0000
commitd1ddd4ca3a1879b85d823f06b018aa19593a320a (patch)
treece2e1e265dcf97bf2ae450abb34fa9952a1fa784 /include
parentc6d356648c32463d56a3461480d622e77333f925 (diff)
wlr_scene_surface: Introduce scene_surface_set_clip
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_scene.h2
-rw-r--r--include/wlr/types/wlr_scene.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/types/wlr_scene.h b/include/types/wlr_scene.h
index 64c11bc6..80dcfd1b 100644
--- a/include/types/wlr_scene.h
+++ b/include/types/wlr_scene.h
@@ -5,4 +5,6 @@
struct wlr_scene *scene_node_get_root(struct wlr_scene_node *node);
+void scene_surface_set_clip(struct wlr_scene_surface *surface, struct wlr_box *clip);
+
#endif
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index bb5f025d..3a3d34c2 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -119,6 +119,8 @@ struct wlr_scene_surface {
// private state
+ struct wlr_box clip;
+
struct wlr_addon addon;
struct wl_listener outputs_update;