diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-02-14 00:50:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 00:50:44 +0100 |
commit | cc39bbdff336cbad8892e79e8888ae483c457f70 (patch) | |
tree | fb4135e4bf815cc1f5a5771a93ac81aeb736cd1e | |
parent | subsurface_get_root_coords: break on NULL (diff) | |
parent | seatop_move_tiling: use tab/stack parent not self (diff) | |
download | sway-cc39bbdff336cbad8892e79e8888ae483c457f70.tar.gz sway-cc39bbdff336cbad8892e79e8888ae483c457f70.tar.zst sway-cc39bbdff336cbad8892e79e8888ae483c457f70.zip |
Merge pull request #3675 from RedSoxFan/fix-move-tiling-self
seatop_move_tiling: use tab/stack parent not self
-rw-r--r-- | sway/input/seatop_move_tiling.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c index 8b541f80..422a4aa2 100644 --- 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) { | |||
150 | } | 150 | } |
151 | if (edge) { | 151 | if (edge) { |
152 | e->target_node = node_get_parent(&con->node); | 152 | e->target_node = node_get_parent(&con->node); |
153 | if (e->target_node == &e->con->node) { | ||
154 | e->target_node = node_get_parent(e->target_node); | ||
155 | } | ||
153 | e->target_edge = edge; | 156 | e->target_edge = edge; |
154 | node_get_box(e->target_node, &e->drop_box); | 157 | node_get_box(e->target_node, &e->drop_box); |
155 | resize_box(&e->drop_box, edge, DROP_LAYOUT_BORDER); | 158 | resize_box(&e->drop_box, edge, DROP_LAYOUT_BORDER); |