diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-14 18:16:44 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-08-16 16:38:53 +0200 |
commit | 4f888861997ee7314fde868eede6b2474a299679 (patch) | |
tree | 0a3ffc462347fab0e6f3cc378f24bd8ba6d75416 /include/backend | |
parent | dd24991c9ef26bcd215e0601ca3a86a36e72a64b (diff) |
backend/wayland: tag wl_surface
When integrating wlroots with another toolkit, wlroots may receive
wl_pointer.enter events for surfaces not backed by a wlr_output.
Ignore such surfaces by tagging the ones we're aware of with
wl_proxy_set_tag().
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 1e731469..f28d1083 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -154,6 +154,8 @@ struct wlr_wl_seat { }; struct wlr_wl_backend *get_wl_backend_from_backend(struct wlr_backend *backend); +struct wlr_wl_output *get_wl_output_from_surface(struct wlr_wl_backend *wl, + struct wl_surface *surface); void update_wl_output_cursor(struct wlr_wl_output *output); void init_seat_keyboard(struct wlr_wl_seat *seat); |