diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-02 21:36:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 21:36:01 -0400 |
commit | 447dcd3cb3cb482684068fa2c8278920447631a5 (patch) | |
tree | c6436df2cf49f6ca2a648d39392105590d5ee92e /include | |
parent | d3eaf6468cf45007e63386afb3d148919959babe (diff) | |
parent | 0bf3b88019b038f7465b5e333742baacfe0a9eed (diff) |
Merge pull request #1703 from swaywm/layer-keyboard
Give keyboard input to layer surfaces that ask for it
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/seat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index c780a52b..137fcd22 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -1,6 +1,7 @@ #ifndef _SWAY_INPUT_SEAT_H #define _SWAY_INPUT_SEAT_H +#include <wlr/types/wlr_layer_shell.h> #include <wlr/types/wlr_seat.h> #include "sway/input/input-manager.h" @@ -28,6 +29,9 @@ struct sway_seat { bool has_focus; struct wl_list focus_stack; // list of containers in focus order + // If the focused layer is set, views cannot receive keyboard focus + struct wlr_layer_surface *focused_layer; + struct wl_listener focus_destroy; struct wl_listener new_container; @@ -57,6 +61,9 @@ void seat_set_focus(struct sway_seat *seat, struct sway_container *container); void seat_set_focus_warp(struct sway_seat *seat, struct sway_container *container, bool warp); +void seat_set_focus_layer(struct sway_seat *seat, + struct wlr_layer_surface *layer); + struct sway_container *seat_get_focus(struct sway_seat *seat); /** |