i3
|
#include "all.h"
Go to the source code of this file.
Functions | |
static Con * | lowest_common_ancestor (Con *a, Con *b) |
static Con * | child_containing_con_recursively (Con *ancestor, Con *con) |
static bool | is_focused_descendant (Con *con, Con *ancestor) |
void | insert_con_into (Con *con, Con *target, position_t position) |
This function detaches 'con' from its parent and inserts it either before or after 'target'. | |
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, direction_t direction) |
Moves the given container in the given direction. | |
|
static |
Definition at line 179 of file move.c.
References CALL, con_detach(), con_fix_percent(), D_DOWN, D_RIGHT, focused, Con::parent, Con::percent, TAILQ_INSERT_HEAD, and TAILQ_INSERT_TAIL.
Referenced by move_to_output_directed(), and tree_move().
void insert_con_into | ( | Con * | con, |
Con * | target, | ||
position_t | position ) |
This function detaches 'con' from its parent and inserts it either before or after 'target'.
Definition at line 65 of file move.c.
References AFTER, BEFORE, CALL, child_containing_con_recursively(), con_attach(), con_detach(), con_fix_percent(), DLOG, ELOG, focused, is_focused_descendant(), lowest_common_ancestor(), Con::parent, Con::percent, TAILQ_FOREACH, TAILQ_INSERT_AFTER, TAILQ_INSERT_BEFORE, TAILQ_INSERT_HEAD, TAILQ_INSERT_TAIL, TAILQ_PREV, TAILQ_REMOVE, Con::type, and workspace_attach_to().
Referenced by floating_disable(), tiling_drag(), and tree_move().
Definition at line 48 of file move.c.
References Con::parent, and TAILQ_FIRST.
Referenced by insert_con_into().
|
static |
Definition at line 206 of file move.c.
References attach_to_workspace(), CLOSEST_OUTPUT, xoutput::con, con_focus(), con_get_workspace(), croot, Con::deco_render_params, DLOG, ewmh_update_wm_desktop(), focused, FREE, get_output_for_con(), get_output_next(), GREP_FIRST, ipc_send_window_event(), output_get_content(), tree_flatten(), workspace_is_visible(), and workspace_show().
Referenced by tree_move().
void tree_move | ( | Con * | con, |
direction_t | direction ) |
Moves the given container in the given direction.
Definition at line 259 of file move.c.
References AFTER, attach_to_workspace(), BEFORE, CF_GLOBAL, CF_OUTPUT, con_descend_direction(), con_force_split_parents_redraw(), con_fullscreen_permits_focusing(), con_get_workspace(), con_inside_floating(), con_is_floating(), con_is_leaf(), con_num_children(), con_orientation(), con_parent_with_orientation(), croot, D_LEFT, D_UP, Con::deco_render_params, DLOG, ewmh_update_wm_desktop(), floating_disable(), FREE, Con::fullscreen_mode, insert_con_into(), ipc_send_window_event(), L_DEFAULT, Con::layout, LOG, move_to_output_directed(), orientation_from_direction(), Con::parent, TAILQ_NEXT, TAILQ_PREV, TAILQ_SWAP, tree_flatten(), Con::type, and ws_force_orientation().
Referenced by cmd_move_direction(), and tiling_drag().