aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_move_floating.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seatop_move_floating.c')
-rw-r--r--sway/input/seatop_move_floating.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/seatop_move_floating.c b/sway/input/seatop_move_floating.c
index 6683be21..ddcd4c53 100644
--- a/sway/input/seatop_move_floating.c
+++ b/sway/input/seatop_move_floating.c
@@ -15,7 +15,7 @@ static void finalize_move(struct sway_seat *seat) {
15 15
16 // We "move" the container to its own location 16 // We "move" the container to its own location
17 // so it discovers its output again. 17 // so it discovers its output again.
18 container_floating_move_to(e->con, e->con->x, e->con->y); 18 container_floating_move_to(e->con, e->con->pending.x, e->con->pending.y);
19 transaction_commit_dirty(); 19 transaction_commit_dirty();
20 20
21 seatop_begin_default(seat); 21 seatop_begin_default(seat);
@@ -70,8 +70,8 @@ void seatop_begin_move_floating(struct sway_seat *seat,
70 return; 70 return;
71 } 71 }
72 e->con = con; 72 e->con = con;
73 e->dx = cursor->cursor->x - con->x; 73 e->dx = cursor->cursor->x - con->pending.x;
74 e->dy = cursor->cursor->y - con->y; 74 e->dy = cursor->cursor->y - con->pending.y;
75 75
76 seat->seatop_impl = &seatop_impl; 76 seat->seatop_impl = &seatop_impl;
77 seat->seatop_data = e; 77 seat->seatop_data = e;