2 #define I3__FILE__ "move.c"
33 if (parent->
type == CT_WORKSPACE) {
35 if (split != parent) {
36 DLOG(
"Got a new split con, using that one instead\n");
43 DLOG(
"ok, continuing with con %p instead\n", con);
53 }
else if (position ==
AFTER) {
64 CALL(old_parent, on_remove_child);
108 DLOG(
"No output in this direction found. Not moving.\n");
116 DLOG(
"No workspace on output in this direction found. Not moving.\n");
139 DLOG(
"Moving in direction %d\n", direction);
143 if (con->
type == CT_WORKSPACE) {
144 DLOG(
"Not moving workspace\n");
162 if (!same_orientation) {
170 DLOG(
"Inside floating, moving to workspace\n");
174 DLOG(
"Force-changing orientation\n");
180 if (same_orientation == con->
parent) {
181 DLOG(
"We are in the same container\n");
183 if ((swap = (direction ==
D_LEFT || direction ==
D_UP ?
212 }
while (same_orientation == NULL);
218 while (above->
parent != same_orientation)
223 LOG(
"Cannot move out of fullscreen container\n");
227 DLOG(
"above = %p\n", above);
230 if (direction ==
D_UP || direction ==
D_LEFT) {