X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fmove.h;h=df644a6b8b7b217b1c3dfd8b433a00e5d94621eb;hp=7debcf28e397c8b06877853de7f9e9cff51ed9ba;hb=HEAD;hpb=b1974a469f2dec2af753ea4735f1b1c5d37161da diff --git a/include/move.h b/include/move.h index 7debcf28..df644a6b 100644 --- a/include/move.h +++ b/include/move.h @@ -9,9 +9,21 @@ */ #pragma once +#include + /** * Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT, * TOK_UP, TOK_DOWN from cmdparse.l) * */ 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);