aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/seat.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
commit6710de9878a07a185d28f9cec71e3f1b3d3407ab (patch)
treedec44173de7b133fbac0230ac2530af4c4ff0bc7 /include/rootston/seat.h
parent41fccb8507bcc1b18cff0c785c5697f9f0bdceda (diff)
parent19b576734e75d65ed6e28b13131f20f6444cba48 (diff)
Merge branch 'master' into xwayland-dnd
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r--include/rootston/seat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
index 6f482723..d2ef90f3 100644
--- a/include/rootston/seat.h
+++ b/include/rootston/seat.h
@@ -19,6 +19,9 @@ struct roots_seat {
// If the focused layer is set, views cannot receive keyboard focus
struct wlr_layer_surface *focused_layer;
+ // If non-null, only this client can receive input events
+ struct wl_client *exclusive_client;
+
struct wl_list views; // roots_seat_view::link
bool has_focus;
@@ -125,4 +128,10 @@ void roots_drag_icon_update_position(struct roots_drag_icon *icon);
void roots_drag_icon_damage_whole(struct roots_drag_icon *icon);
+void roots_seat_set_exclusive_client(struct roots_seat *seat,
+ struct wl_client *client);
+
+bool roots_seat_allow_input(struct roots_seat *seat,
+ struct wl_resource *resource);
+
#endif