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
This commit is contained in:
Mykola Orliuk 2020-10-08 02:44:38 +02:00 committed by Simon Ser
parent ce8855ca2a
commit 44531e16e0
2 changed files with 23 additions and 8 deletions

View file

@ -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);