]> git.sur5r.net Git - i3/i3/blobdiff - include/move.h
Merge branch 'release-4.16.1'
[i3/i3] / include / move.h
index d45e676e4d52b5e8b8b7c6cef919f17321dea2d9..df644a6b8b7b217b1c3dfd8b433a00e5d94621eb 100644 (file)
@@ -2,19 +2,28 @@
  * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
- * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
  *
  * move.c: Moving containers into some direction.
  *
  */
-#ifndef I3_MOVE_H
-#define I3_MOVE_H
+#pragma once
+
+#include <config.h>
 
 /**
- * Moves the current container in the given direction (TOK_LEFT, TOK_RIGHT,
+ * Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
  * TOK_UP, TOK_DOWN from cmdparse.l)
  *
  */
-void tree_move(int direction);
+void tree_move(Con *con, int direction);
+
+typedef enum { BEFORE,
+               AFTER } position_t;
 
-#endif
+/**
+ * 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);