diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 5 |
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) { | |||
353 | seat->cursor->cursor->y); | 353 | seat->cursor->cursor->y); |
354 | } | 354 | } |
355 | 355 | ||
356 | bool seat_allow_input(struct sway_seat *seat, struct wlr_surface *surface) { | 356 | bool seat_is_input_allowed(struct sway_seat *seat, |
357 | struct wlr_surface *surface) { | ||
357 | struct wl_client *client = wl_resource_get_client(surface->resource); | 358 | struct wl_client *client = wl_resource_get_client(surface->resource); |
358 | return !seat->exclusive_client || seat->exclusive_client == client; | 359 | return !seat->exclusive_client || seat->exclusive_client == client; |
359 | } | 360 | } |
@@ -379,7 +380,7 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
379 | wl_list_remove(&seat_con->link); | 380 | wl_list_remove(&seat_con->link); |
380 | wl_list_insert(&seat->focus_stack, &seat_con->link); | 381 | wl_list_insert(&seat->focus_stack, &seat_con->link); |
381 | 382 | ||
382 | if (container->type == C_VIEW && !seat_allow_input( | 383 | if (container->type == C_VIEW && !seat_is_input_allowed( |
383 | seat, container->sway_view->surface)) { | 384 | seat, container->sway_view->surface)) { |
384 | wlr_log(L_DEBUG, "Refusing to set focus, input is inhibited"); | 385 | wlr_log(L_DEBUG, "Refusing to set focus, input is inhibited"); |
385 | return; | 386 | return; |