commit cc39bbdff336cbad8892e79e8888ae483c457f70
parent d168d65f2c0297bf5662c0f48f5f53705e54a376
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 14 Feb 2019 00:50:44 +0100
Merge pull request #3675 from RedSoxFan/fix-move-tiling-self
seatop_move_tiling: use tab/stack parent not self
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c
@@ -150,6 +150,9 @@ static void handle_motion_postthreshold(struct sway_seat *seat) {
}
if (edge) {
e->target_node = node_get_parent(&con->node);
+ if (e->target_node == &e->con->node) {
+ e->target_node = node_get_parent(e->target_node);
+ }
e->target_edge = edge;
node_get_box(e->target_node, &e->drop_box);
resize_box(&e->drop_box, edge, DROP_LAYOUT_BORDER);