mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
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.
This commit is contained in:
parent
0ab37db543
commit
fa13493ad5
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue