diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-10 10:00:09 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-10 10:00:09 -0400 |
commit | fe3c6c929be467b3e1ec860c94c9524a6686bd61 (patch) | |
tree | 610d71e6274bf1dbd75ee9321b554b9389df1279 /include/wlr | |
parent | d4c065e59b1d0275d91dac83bed8cfa54d2e57b5 (diff) |
wl-shell: popup input handling
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_wl_shell.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 162874e9..6133b80d 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -125,4 +125,13 @@ void wlr_wl_shell_surface_configure(struct wlr_wl_shell_surface *surface, void wlr_wl_shell_surface_popup_done(struct wlr_wl_shell_surface *surface); bool wlr_wl_shell_surface_is_transient(struct wlr_wl_shell_surface *surface); +/** + * Find a popup within this surface at the surface-local coordinates. Returns + * the popup and coordinates in the topmost surface coordinate system or NULL if + * no popup is found at that location. + */ +struct wlr_wl_shell_surface *wlr_wl_shell_surface_popup_at( + struct wlr_wl_shell_surface *surface, double sx, double sy, + double *popup_sx, double *popup_sy); + #endif |