From 5e0ef70cc085666d0939aefdf403664c5cd268e5 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 28 May 2020 00:24:50 +0200 Subject: 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 --- include/wlr/types/wlr_seat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; -- cgit v1.2.3