summaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-04-03 21:25:42 -0400
committerDrew DeVault <[email protected]>2018-04-04 18:47:48 -0400
commitd2d050d59cf19c583b100e6e3637ed9a06a8863f (patch)
treee7b42d8f1c6aaae6beb004a71dd49933abbc2af3 /sway/input/seat.c
parent46b388995d7d50a39d13fce9417e2ad0d2cf749f (diff)
Address review feedback
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 0e26dde4..0699324a 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -353,7 +353,8 @@ void seat_configure_xcursor(struct sway_seat *seat) {
seat->cursor->cursor->y);
}
-bool seat_allow_input(struct sway_seat *seat, struct wlr_surface *surface) {
+bool seat_is_input_allowed(struct sway_seat *seat,
+ struct wlr_surface *surface) {
struct wl_client *client = wl_resource_get_client(surface->resource);
return !seat->exclusive_client || seat->exclusive_client == client;
}
@@ -379,7 +380,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
wl_list_remove(&seat_con->link);
wl_list_insert(&seat->focus_stack, &seat_con->link);
- if (container->type == C_VIEW && !seat_allow_input(
+ if (container->type == C_VIEW && !seat_is_input_allowed(
seat, container->sway_view->surface)) {
wlr_log(L_DEBUG, "Refusing to set focus, input is inhibited");
return;