diff options
author | Erik Reider <35975961+ErikReider@users.noreply.github.com> | 2023-06-05 15:31:16 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2023-06-06 09:07:05 +0200 |
commit | 913a7679cbde98df0722b326d8c3cfc0f0576f6d (patch) | |
tree | 752fea000515bcd93a40fc175dbbace5221ee9c4 /include/sway/input | |
parent | 7ab8cb2ee6f11693987d9f24abec708144807b53 (diff) |
Add support for wlr-layer-shell ON_DEMAND keyboard interactivity
This allows for layer shell surfaces to receive focus while the surface is explicitly focused, i.e allowing
text fields to receive keyboard input just like a regular surface.
Diffstat (limited to 'include/sway/input')
-rw-r--r-- | include/sway/input/seat.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 5ef8e2f3..35a96ace 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -104,8 +104,9 @@ struct sway_seat { struct sway_workspace *workspace; char *prev_workspace_name; // for workspace back_and_forth - // If the focused layer is set, views cannot receive keyboard focus struct wlr_layer_surface_v1 *focused_layer; + // If the exclusive layer is set, views cannot receive keyboard focus + bool has_exclusive_layer; // If exclusive_client is set, no other clients will receive input events struct wl_client *exclusive_client; |