i3
Enumerations | Functions
move.c File Reference
#include "all.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, direction_t direction)
 
static void move_to_output_directed (Con *con, direction_t direction)
 
void tree_move (Con *con, int direction)
 Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT, TOK_UP, TOK_DOWN from cmdparse.l) More...
 

Enumeration Type Documentation

◆ position_t

enum position_t
Enumerator
BEFORE 
AFTER 

Definition at line 12 of file move.c.

Function Documentation

◆ attach_to_workspace()

static void attach_to_workspace ( Con con,
Con ws,
direction_t  direction 
)
static

Definition at line 72 of file move.c.

References CALL, con_detach(), con_fix_percent(), D_DOWN, D_RIGHT, Con::focus_head, focused, Con::nodes_head, Con::parent, Con::percent, TAILQ_INSERT_HEAD, and TAILQ_INSERT_TAIL.

Referenced by move_to_output_directed(), and tree_move().

Here is the call graph for this function:

◆ insert_con_into()

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

◆ move_to_output_directed()

static void move_to_output_directed ( Con con,
direction_t  direction 
)
static

◆ tree_move()

void tree_move ( Con con,
int  direction 
)