From fa13493ad539ff768f47932668c75d7c4513b0a5 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Thu, 24 May 2018 16:05:12 +0200 Subject: rootston: Disable keyboard focus on inactive views After clicking on something non-interactive, the current view was getting deactivated, but still received keyboard events. roots_seat_set_focus now changes both together in this case. --- rootston/seat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'rootston/seat.c') diff --git a/rootston/seat.c b/rootston/seat.c index cbc7c961..b137ff11 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -798,6 +798,7 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) { if (view == NULL) { seat->cursor->mode = ROOTS_CURSOR_PASSTHROUGH; + wlr_seat_keyboard_clear_focus(seat->seat); return; } -- cgit v1.2.3