diff options
author | emersion <contact@emersion.fr> | 2018-04-03 10:38:46 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-03 10:38:46 -0400 |
commit | 58ac05c276c62c821735e77e15f7f502c82209aa (patch) | |
tree | e5712bbee8c665990ace1f7f3243aeec9cf9a65d /include/rootston/seat.h | |
parent | 1cd7ff7d3ab1cb922e4064ee77db453064cccb5b (diff) | |
parent | 506acbdecd4436117729e4c40678645725ed2d1f (diff) |
Merge branch 'master' into xwayland-dnd
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r-- | include/rootston/seat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h index 0b1dbe2d..6f482723 100644 --- a/include/rootston/seat.h +++ b/include/rootston/seat.h @@ -4,6 +4,7 @@ #include <wayland-server.h> #include "rootston/input.h" #include "rootston/keyboard.h" +#include "rootston/layers.h" struct roots_seat { struct roots_input *input; @@ -15,6 +16,9 @@ struct roots_seat { int32_t touch_id; double touch_x, touch_y; + // If the focused layer is set, views cannot receive keyboard focus + struct wlr_layer_surface *focused_layer; + struct wl_list views; // roots_seat_view::link bool has_focus; @@ -100,6 +104,9 @@ struct roots_view *roots_seat_get_focus(struct roots_seat *seat); void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view); +void roots_seat_set_focus_layer(struct roots_seat *seat, + struct wlr_layer_surface *layer); + void roots_seat_cycle_focus(struct roots_seat *seat); void roots_seat_begin_move(struct roots_seat *seat, struct roots_view *view); |