18 if (workspace == NULL)
19 return (
gaps_t){0, 0, 0, 0, 0};
27 return (
gaps_t){0, 0, 0, 0, 0};
60 const bool leaf_or_stacked_tabbed =
66 if (leaf_or_stacked_tabbed &&
74 if (leaf_or_stacked_tabbed &&
93 if (fullscreen == NULL)
97 if (con == fullscreen)
107 if (fullscreen == NULL)
123 if (strcmp(assignment->
name, ws->
name) == 0) {
165 DLOG(
"updating gap assignments for workspace %s\n", workspace->
name);
int con_num_visible_children(Con *con)
Returns the number of visible non-floating children of this container.
bool resize_find_tiling_participants(Con **current, Con **other, direction_t direction, bool both_sides)
#define TAILQ_FIRST(head)
Con * output_get_content(Con *output)
Returns the output container below the given output container.
struct ws_assignments_head ws_assignments
bool con_is_leaf(Con *con)
Returns true when this node is a leaf node (has no children)
bool gaps_should_inset_con(Con *con, int children)
bool con_has_parent(Con *con, Con *parent)
Checks if the container has the given parent as an actual parent.
gaps_t gaps_for_workspace(Con *ws)
Returns the configured gaps for this workspace based on the workspace name, number, and configured workspace gap assignments.
Con * con_inside_floating(Con *con)
Checks if the given container is either floating or inside some floating container.
Stores which workspace (by name or number) goes to which output and its gaps config.
int num
the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace ...
bool gaps_has_adjacent_container(Con *con, direction_t direction)
#define TAILQ_FOREACH(var, head, field)
Con * con_get_workspace(Con *con)
Gets the workspace container this node is on.
int con_num_children(Con *con)
Returns the number of children of this container.
bool con_inside_stacked_or_tabbed(Con *con)
Returns true if the container is within any stacked/tabbed split container.
int ws_name_to_number(const char *name)
Parses the workspace name as a number.
Con * con_get_fullscreen_con(Con *con, fullscreen_mode_t fullscreen_mode)
Returns the first fullscreen node below this node.
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.
gaps_t calculate_effective_gaps(Con *con)
Calculates the effective gap sizes for a container.
void gaps_reapply_workspace_assignments(void)
Re-applies all workspace gap assignments to existing workspaces after reloading the configuration fil...