aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/input/cursor.c2
-rw-r--r--sway/input/seatop_default.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index b336fcbc..b9643535 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -807,6 +807,8 @@ static void check_constraint_region(struct sway_cursor *cursor) {
807 wlr_cursor_warp_closest(cursor->cursor, NULL, 807 wlr_cursor_warp_closest(cursor->cursor, NULL,
808 sx + con->content_x - view->geometry.x, 808 sx + con->content_x - view->geometry.x,
809 sy + con->content_y - view->geometry.y); 809 sy + con->content_y - view->geometry.y);
810
811 cursor_rebase(cursor);
810 } 812 }
811 } 813 }
812 } 814 }
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 32c7318b..048bad75 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -656,6 +656,7 @@ static void handle_rebase(struct sway_seat *seat, uint32_t time_msec) {
656 if (surface) { 656 if (surface) {
657 if (seat_is_input_allowed(seat, surface)) { 657 if (seat_is_input_allowed(seat, surface)) {
658 wlr_seat_pointer_notify_enter(seat->wlr_seat, surface, sx, sy); 658 wlr_seat_pointer_notify_enter(seat->wlr_seat, surface, sx, sy);
659 wlr_seat_pointer_notify_motion(seat->wlr_seat, time_msec, sx, sy);
659 } 660 }
660 } else { 661 } else {
661 cursor_update_image(cursor, e->previous_node); 662 cursor_update_image(cursor, e->previous_node);