aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-rw-r--r--rootston/seat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 91561567..d8910660 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -825,6 +825,9 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
view_activate(view, true);
seat->has_focus = true;
+ // An existing keyboard grab might try to deny setting focus, so cancel it
+ wlr_seat_keyboard_end_grab(seat->seat);
+
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->seat);
if (keyboard != NULL) {
wlr_seat_keyboard_notify_enter(seat->seat, view->wlr_surface,