mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Fix border commands from changing focus
This commit is contained in:
parent
cf3ab1f45f
commit
82cd55a670
5 changed files with 13 additions and 11 deletions
|
|
@ -602,7 +602,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
wlr_output, seat->cursor->cursor->x,
|
||||
seat->cursor->cursor->y)) {
|
||||
wlr_cursor_warp(seat->cursor->cursor, NULL, x, y);
|
||||
cursor_send_pointer_motion(seat->cursor, 0);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -613,7 +613,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
}
|
||||
|
||||
if (last_workspace && last_workspace != new_workspace) {
|
||||
cursor_send_pointer_motion(seat->cursor, 0);
|
||||
cursor_send_pointer_motion(seat->cursor, 0, true);
|
||||
}
|
||||
|
||||
seat->has_focus = (container != NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue