diff options
author | Mykola Orliuk <virkony@gmail.com> | 2020-10-08 02:44:38 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-12 12:31:32 +0100 |
commit | 44531e16e0edd3dbf6f7abe4afa930bceebcbf92 (patch) | |
tree | 4f48a77bc2e54afd6349c519e07e863a8df85832 /include/backend | |
parent | ce8855ca2ab29f93ed7cdfc8348a7a8f5a970328 (diff) |
backend/wayland: Add active pointer per host seat
Every host seat with pointer capability propagates events to one of
sub-pointer depending which output window we entered.
active_pointer tracks reference to sub-pointer on enter/leave events to
avoid lookup for it on every move events.
Fixes swaywm/wlroots#1499
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 20292625..9f64cdb7 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -116,6 +116,7 @@ struct wlr_wl_seat { struct wl_keyboard *keyboard; struct wlr_wl_backend *backend; + struct wlr_wl_pointer *active_pointer; }; struct wlr_wl_backend *get_wl_backend_from_backend(struct wlr_backend *backend); |