i3
Enumerations | Functions
src/move.c File Reference
#include "all.h"
#include "cmdparse.tab.h"
Include dependency graph for move.c:

Go to the source code of this file.

Enumerations

enum  position_t { BEFORE, AFTER }

Functions

static void insert_con_into (Con *con, Con *target, position_t position)
static void attach_to_workspace (Con *con, Con *ws)
void tree_move (int direction)
 Moves the current container in the given direction (TOK_LEFT, TOK_RIGHT, TOK_UP, TOK_DOWN from cmdparse.l)

Enumeration Type Documentation

enum position_t
Enumerator:
BEFORE 
AFTER 

Definition at line 8 of file move.c.


Function Documentation

static void attach_to_workspace ( Con con,
Con ws 
) [static]

Definition at line 66 of file move.c.

References CALL, con_detach(), con_fix_percent(), focused, Con::parent, Con::percent, and TAILQ_INSERT_TAIL.

Referenced by tree_move().

Here is the call graph for this function:

static void insert_con_into ( Con con,
Con target,
position_t  position 
) [static]

Definition at line 15 of file move.c.

References AFTER, BEFORE, CALL, con_attach(), con_detach(), con_fix_percent(), DLOG, focused, Con::parent, Con::percent, TAILQ_INSERT_AFTER, TAILQ_INSERT_BEFORE, TAILQ_INSERT_HEAD, Con::type, and workspace_attach_to().

Referenced by tree_move().

Here is the call graph for this function:

void tree_move ( int  direction)