aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-06-04 08:31:27 +0900
committerDominique Martinet <asmadeus@codewreck.org>2018-06-04 22:31:36 +0900
commit51b9883ea0201195ed7c151175725c926c94bd47 (patch)
treeaf7e0ddd1b41aaccc82914b1c130a5973650a386 /include/wlr
parent1c5c8652c52d8e9cfefddf6fb418af0d2b471fea (diff)
seat: allow clients to bind to seat multiple times
This lets clients bind to a seat multiple times by re-using the existing wlr_seat_client whenever a duplicate request happens. Previously, an independant wlr_seat_client would be created and only events from one would be processed. Fixes #1023.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_seat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h
index f4840c89..5e04003d 100644
--- a/include/wlr/types/wlr_seat.h
+++ b/include/wlr/types/wlr_seat.h
@@ -13,11 +13,11 @@
* managed by wlr_seat; some may be NULL.
*/
struct wlr_seat_client {
- struct wl_resource *wl_resource;
struct wl_client *client;
struct wlr_seat *seat;
// lists of wl_resource
+ struct wl_list wl_resources;
struct wl_list pointers;
struct wl_list keyboards;
struct wl_list touches;