aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 231b545b..8704f90f 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1050,9 +1050,8 @@ static void seat_end_move_tiling(struct sway_seat *seat) {
1050 // Moving container into empty workspace 1050 // Moving container into empty workspace
1051 if (target_node->type == N_WORKSPACE && edge == WLR_EDGE_NONE) { 1051 if (target_node->type == N_WORKSPACE && edge == WLR_EDGE_NONE) {
1052 workspace_add_tiling(new_ws, con); 1052 workspace_add_tiling(new_ws, con);
1053
1054 // Moving container before/after another
1055 } else if (target_node->type == N_CONTAINER) { 1053 } else if (target_node->type == N_CONTAINER) {
1054 // Moving container before/after another
1056 struct sway_container *target = target_node->sway_container; 1055 struct sway_container *target = target_node->sway_container;
1057 enum sway_container_layout layout = container_parent_layout(target); 1056 enum sway_container_layout layout = container_parent_layout(target);
1058 if (edge && !is_parallel(layout, edge)) { 1057 if (edge && !is_parallel(layout, edge)) {
@@ -1061,9 +1060,8 @@ static void seat_end_move_tiling(struct sway_seat *seat) {
1061 container_split(target, new_layout); 1060 container_split(target, new_layout);
1062 } 1061 }
1063 container_add_sibling(target, con, after); 1062 container_add_sibling(target, con, after);
1064
1065 // Target is a workspace which requires splitting
1066 } else { 1063 } else {
1064 // Target is a workspace which requires splitting
1067 enum sway_container_layout new_layout = edge == WLR_EDGE_TOP || 1065 enum sway_container_layout new_layout = edge == WLR_EDGE_TOP ||
1068 edge == WLR_EDGE_BOTTOM ? L_VERT : L_HORIZ; 1066 edge == WLR_EDGE_BOTTOM ? L_VERT : L_HORIZ;
1069 workspace_split(new_ws, new_layout); 1067 workspace_split(new_ws, new_layout);