aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Kondor <kondor.dani@gmail.com>2020-11-26 20:18:22 +0800
committerSimon Ser <contact@emersion.fr>2021-01-12 20:13:52 +0100
commitb7dc4f2990d1e6cdba38a7e9d2d286e48dd1a3eb (patch)
tree41a603abf51227f3b4e1a16105d881a5da5c3117 /include
parent5d054258af1bbdad43758d0161ef4ca10f41aaec (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_layer_shell_v1.h2
1 files changed, 1 insertions, 1 deletions
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;