aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-10 11:26:34 +0200
committerSimon Ser <contact@emersion.fr>2021-08-26 21:12:28 +0200
commite4d0ec9ee104044dec69c81990b7a0cd5cf039f3 (patch)
treece3b99c764af548fbc4430c6f6e42a7451c80830 /include/wlr
parent501b29db03258c53e95e80a45501e56cb6f7d999 (diff)
scene: add wlr_scene_node_surface_at
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index 282685a7..8a327262 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -97,6 +97,13 @@ void wlr_scene_node_place_below(struct wlr_scene_node *node,
*/
void wlr_scene_node_for_each_surface(struct wlr_scene_node *node,
wlr_surface_iterator_func_t iterator, void *user_data);
+/**
+ * Find a surface in this scene-graph that accepts input events at the given
+ * layout-local coordinates. Returns the surface and coordinates relative to
+ * the returned surface, or NULL if no surface is found at that location.
+ */
+struct wlr_surface *wlr_scene_node_surface_at(struct wlr_scene_node *node,
+ double lx, double ly, double *sx, double *sy);
/**
* Create a new scene-graph.