mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Merge pull request #997 from dcz-purism/master
Ignore clicks on un-focuseable things.
This commit is contained in:
commit
a0eb37e2ea
2 changed files with 4 additions and 1 deletions
|
@ -273,7 +273,9 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
|||
}
|
||||
break;
|
||||
case WLR_BUTTON_PRESSED:
|
||||
if (view) {
|
||||
roots_seat_set_focus(seat, view);
|
||||
}
|
||||
if (surface && wlr_surface_is_layer_surface(surface)) {
|
||||
struct wlr_layer_surface *layer =
|
||||
wlr_layer_surface_from_wlr_surface(surface);
|
||||
|
|
|
@ -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