From b7dc4f2990d1e6cdba38a7e9d2d286e48dd1a3eb Mon Sep 17 00:00:00 2001 From: Daniel Kondor Date: Thu, 26 Nov 2020 20:18:22 +0800 Subject: layer-shell: allow new values for keyboard-interactivity Value is now an enum with a new value ("on-demand") that compositors can use to allow "normal" keyboard focus semantics regardless of the layer the client surface is on. An error is sent for invalid keyboard interactivity values. The old behavior is retained for clients using the previous version of the protocol. Also adjusted the layer-shell example program to use the new keyboard interactivity options. --- include/wlr/types/wlr_layer_shell_v1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_layer_shell_v1.h b/include/wlr/types/wlr_layer_shell_v1.h index 9c56f8af..3b214dc9 100644 --- a/include/wlr/types/wlr_layer_shell_v1.h +++ b/include/wlr/types/wlr_layer_shell_v1.h @@ -49,7 +49,7 @@ struct wlr_layer_surface_v1_state { struct { uint32_t top, right, bottom, left; } margin; - bool keyboard_interactive; + enum zwlr_layer_surface_v1_keyboard_interactivity keyboard_interactive; uint32_t desired_width, desired_height; uint32_t actual_width, actual_height; enum zwlr_layer_shell_v1_layer layer; -- cgit v1.2.3