18 if (workspace == NULL) {
19 return (
gaps_t){0, 0, 0, 0, 0};
28 return (
gaps_t){0, 0, 0, 0, 0};
62 const bool leaf_or_stacked_tabbed =
68 if (leaf_or_stacked_tabbed &&
76 if (leaf_or_stacked_tabbed &&
95 if (fullscreen == NULL) {
100 if (con == fullscreen) {
107 if (!found_neighbor) {
112 if (fullscreen == NULL) {
129 if (strcmp(assignment->
name, ws->
name) == 0) {
171 DLOG(
"updating gap assignments for workspace %s\n", workspace->
name);
Con * con_get_fullscreen_con(Con *con, fullscreen_mode_t fullscreen_mode)
Returns the first fullscreen node below this node.
bool con_inside_stacked_or_tabbed(Con *con)
Returns true if the container is within any stacked/tabbed split container.
Con * con_get_workspace(Con *con)
Gets the workspace container this node is on.
int con_num_visible_children(Con *con)
Returns the number of visible non-floating children of this container.
Con * con_inside_floating(Con *con)
Checks if the given container is either floating or inside some floating container.
bool con_is_leaf(Con *con)
Returns true when this node is a leaf node (has no children)
int con_num_children(Con *con)
Returns the number of children of this container.
bool con_has_parent(Con *con, Con *parent)
Checks if the container has the given parent as an actual parent.
void gaps_reapply_workspace_assignments(void)
Re-applies all workspace gap assignments to existing workspaces after reloading the configuration fil...
gaps_t calculate_effective_gaps(Con *con)
Calculates the effective gap sizes for a container.
bool gaps_has_adjacent_container(Con *con, direction_t direction)
bool gaps_should_inset_con(Con *con, int children)
gaps_t gaps_for_workspace(Con *ws)
Returns the configured gaps for this workspace based on the workspace name, number,...
Con * output_get_content(Con *output)
Returns the output container below the given output container.
bool resize_find_tiling_participants(Con **current, Con **other, direction_t direction, bool both_sides)
int ws_name_to_number(const char *name)
Parses the workspace name as a number.
struct ws_assignments_head ws_assignments
@ SMART_GAPS_INVERSE_OUTER
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_FIRST(head)
Stores which workspace (by name or number) goes to which output and its gaps config.
A 'Con' represents everything from the X11 root window down to a single X11 window.
gaps_t gaps
Only applicable for containers of type CT_WORKSPACE.
int num
the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace ...