diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 631a273f..d1fc62c4 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -550,9 +550,7 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
550 | wlr_output, seat->cursor->cursor->x, | 550 | wlr_output, seat->cursor->cursor->x, |
551 | seat->cursor->cursor->y)) { | 551 | seat->cursor->cursor->y)) { |
552 | wlr_cursor_warp(seat->cursor->cursor, NULL, x, y); | 552 | wlr_cursor_warp(seat->cursor->cursor, NULL, x, y); |
553 | struct timespec now; | 553 | cursor_send_pointer_motion(seat->cursor, 0); |
554 | clock_gettime(CLOCK_MONOTONIC, &now); | ||
555 | cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000); | ||
556 | } | 554 | } |
557 | } | 555 | } |
558 | } | 556 | } |
@@ -565,9 +563,7 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
565 | } | 563 | } |
566 | 564 | ||
567 | if (last_workspace && last_workspace != new_workspace) { | 565 | if (last_workspace && last_workspace != new_workspace) { |
568 | struct timespec now; | 566 | cursor_send_pointer_motion(seat->cursor, 0); |
569 | clock_gettime(CLOCK_MONOTONIC, &now); | ||
570 | cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000); | ||
571 | } | 567 | } |
572 | 568 | ||
573 | seat->has_focus = (container != NULL); | 569 | seat->has_focus = (container != NULL); |