From ce66244fd2fefed00094d0f1e46fff8e8660c184 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Tue, 28 Sep 2021 10:51:10 +0000 Subject: surface_at: check if surfaces are mapped --- include/wlr/types/wlr_surface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index f33ac5b1..ae3ae80f 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -233,7 +233,8 @@ bool wlr_surface_point_accepts_input(struct wlr_surface *surface, double sx, double sy); /** - * Find a surface in this surface's tree that accepts input events at the given + * Find a surface in this surface's tree that accepts input events and has all + * parents mapped (except this surface, which can be unmapped) 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. */ -- cgit v1.2.3