Enhance wlr-layer-shell keyboard_interactivity
The current keyboard_interactivity
allows clients to only notify the compositor they want exclusive keyboard access. It would make much more sense to allow clients to specify they want one of the following:
- No keyboard interaction - backgrounds, some docks, etc
- keyboard-focus-on-click - such could be panels that have a search field or that can be navigated with they keyboard, but don't want to lock focus to their layer
- exclusive keyboard focus - like the current
1
value - can be used for ex. by lockscreens
Note that adding this doesn't have to break existing clients - the protocol currently says what happens when the value is 1
(and afaik it is implicitly understood the only other reasonable value is 0
). We can just specify what happens when the value is 2
(focus-on-click)