31 if (parent->
type == CT_WORKSPACE) {
33 if (split != parent) {
34 DLOG(
"Got a new split con, using that one instead\n");
41 DLOG(
"ok, continuing with con %p instead\n", con);
51 }
else if (position ==
AFTER) {
62 CALL(old_parent, on_remove_child);
94 DLOG(
"Moving in direction %d\n", direction);
98 if (con->
type == CT_WORKSPACE) {
99 DLOG(
"Not moving workspace\n");
104 DLOG(
"This is the only con on this workspace, not doing anything\n");
116 if (!same_orientation) {
124 DLOG(
"Inside floating, moving to workspace\n");
128 DLOG(
"Force-changing orientation\n");
134 if (same_orientation == con->
parent) {
135 DLOG(
"We are in the same container\n");
137 if ((swap = (direction ==
D_LEFT || direction ==
D_UP ?
163 }
while (same_orientation == NULL);
169 while (above->
parent != same_orientation)
172 DLOG(
"above = %p\n", above);
175 if (direction ==
D_UP || direction ==
D_LEFT) {