diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-05-28 00:24:50 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-28 09:53:50 +0200 |
commit | 5e0ef70cc085666d0939aefdf403664c5cd268e5 (patch) | |
tree | aa3314beecf905a2f45b56a5ce33e2d6ff71662c /include/wlr | |
parent | d66b9966e9a7e5e48d07f55c2fe64b11d1d1d7a1 (diff) |
seat: Create inert objects for missing capabilities
We should throw a protocol error if the relevant capability has never
existed when get_(pointer|keyboard|touch) is called. Otherwise, it
should succeed, even if the capability is not currently present.
This follows the spec, and avoids possible races with the client when
capabilities are lost.
Closes: https://github.com/swaywm/wlroots/issues/2227
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_seat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index 949cd419..aabed7ff 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -214,6 +214,7 @@ struct wlr_seat { char *name; uint32_t capabilities; + uint32_t accumulated_capabilities; struct timespec last_event; struct wlr_data_source *selection_source; |