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);
96 DLOG(
"Moving in direction %d\n", direction);
100 if (con->
type == CT_WORKSPACE) {
101 DLOG(
"Not moving workspace\n");
106 DLOG(
"This is the only con on this workspace, not doing anything\n");
118 if (!same_orientation) {
126 DLOG(
"Inside floating, moving to workspace\n");
130 DLOG(
"Force-changing orientation\n");
136 if (same_orientation == con->
parent) {
137 DLOG(
"We are in the same container\n");
139 if ((swap = (direction ==
D_LEFT || direction ==
D_UP ?
165 }
while (same_orientation == NULL);
171 while (above->
parent != same_orientation)
176 LOG(
"Cannot move out of fullscreen container\n");
180 DLOG(
"above = %p\n", above);
183 if (direction ==
D_UP || direction ==
D_LEFT) {