aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-08 10:22:22 -0400
committerGitHub <noreply@github.com>2018-05-08 10:22:22 -0400
commit397ee7ff9db37d92c48541ff680ec896f335c06b (patch)
tree78b5017efe60245e1dc378071424db7b4f95157a /include/wlr
parent7c2241a55658468fbbeec5cc544e377ad0bccb58 (diff)
parent8931452e1d653cb2cf20b0b0a9892cfc11b24af9 (diff)
Merge pull request #962 from Ongy/layer-surface-at
add wlr_layer_surface_surface_at
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_layer_shell.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_layer_shell.h b/include/wlr/types/wlr_layer_shell.h
index 22352906..1477989d 100644
--- a/include/wlr/types/wlr_layer_shell.h
+++ b/include/wlr/types/wlr_layer_shell.h
@@ -113,4 +113,12 @@ struct wlr_layer_surface *wlr_layer_surface_from_wlr_surface(
void wlr_layer_surface_for_each_surface(struct wlr_layer_surface *surface,
wlr_surface_iterator_func_t iterator, void *user_data);
+/**
+ * Find a surface within this layer-surface tree at the given surface-local
+ * coordinates. Returns the surface and coordinates in the leaf surface
+ * coordinate system or NULL if no surface is found at that location.
+ */
+struct wlr_surface *wlr_layer_surface_surface_at(
+ struct wlr_layer_surface *surface, double sx, double sy,
+ double *sub_x, double *sub_y);
#endif