aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2021-12-09 23:17:16 +0100
committerSimon Ser <contact@emersion.fr>2021-12-13 15:21:05 +0000
commit0215dffba51b63dc394ee028039ac811e1330c60 (patch)
tree0aad5d2c63ab04073d14490c42b726d9a005e764 /include
parentd8ca4945581577f570c02ad46878571c48a08c79 (diff)
scene: send surface enter/leave output events
Co-authored-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_scene.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index bca0b269..1238653d 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -76,6 +76,8 @@ struct wlr_scene_surface {
// private state
+ int prev_width, prev_height;
+
struct wl_listener surface_destroy;
struct wl_listener surface_commit;
};
@@ -201,6 +203,10 @@ struct wlr_scene_tree *wlr_scene_tree_create(struct wlr_scene_node *parent);
* Add a node displaying a single surface to the scene-graph.
*
* The child sub-surfaces are ignored.
+ *
+ * wlr_surface_send_enter()/wlr_surface_send_leave() will be called
+ * automatically based on the position of the surface and outputs in
+ * the scene.
*/
struct wlr_scene_surface *wlr_scene_surface_create(struct wlr_scene_node *parent,
struct wlr_surface *surface);