mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Fix interaction between warping and following
This commit is contained in:
parent
9b38ef950f
commit
b9d2983324
2 changed files with 14 additions and 4 deletions
|
|
@ -120,6 +120,9 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void _sway_seat_set_focus(struct sway_seat *seat,
|
||||
struct sway_container *container, bool warp);
|
||||
|
||||
static void cursor_send_pointer_motion(struct sway_cursor *cursor,
|
||||
uint32_t time) {
|
||||
struct wlr_seat *seat = cursor->seat->wlr_seat;
|
||||
|
|
@ -127,7 +130,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,
|
|||
double sx, sy;
|
||||
struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy);
|
||||
if (c && config->focus_follows_mouse) {
|
||||
sway_seat_set_focus(cursor->seat, c);
|
||||
_sway_seat_set_focus(cursor->seat, c, false);
|
||||
}
|
||||
|
||||
// reset cursor if switching between clients
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue