diff options
author | Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> | 2018-05-24 16:05:12 +0200 |
---|---|---|
committer | Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> | 2018-05-24 16:05:12 +0200 |
commit | fa13493ad539ff768f47932668c75d7c4513b0a5 (patch) | |
tree | 077376ccac81d967d7e3f3d8862a40d4b325260e /rootston | |
parent | 0ab37db54359959d9a9f05ed78a51ead5ba98348 (diff) |
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.
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/seat.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |