mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
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:
parent
ce8855ca2a
commit
44531e16e0
2 changed files with 23 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue