X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fmove.h;fp=include%2Fmove.h;h=df644a6b8b7b217b1c3dfd8b433a00e5d94621eb;hp=64b12b80cc7b937c8c2773989fa312a41b43adda;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/include/move.h b/include/move.h index 64b12b80..df644a6b 100644 --- a/include/move.h +++ b/include/move.h @@ -17,3 +17,13 @@ * */ void tree_move(Con *con, int direction); + +typedef enum { BEFORE, + AFTER } position_t; + +/** + * This function detaches 'con' from its parent and inserts it either before or + * after 'target'. + * + */ +void insert_con_into(Con *con, Con *target, position_t position);