20 if (child->
type == CT_CON)
32 if (strcasecmp(output_str,
"current") == 0) {
34 }
else if (strcasecmp(output_str,
"left") == 0) {
36 }
else if (strcasecmp(output_str,
"right") == 0) {
38 }
else if (strcasecmp(output_str,
"up") == 0) {
40 }
else if (strcasecmp(output_str,
"down") == 0) {
57 if (output_con == NULL) {
58 ELOG(
"Could not get the output container for con = %p.\n", con);
64 ELOG(
"Could not get output from name \"%s\".\n", output_con->
name);
79 Con *workspace, *visible_ws = NULL;
87 Con *current_ws = workspace;
98 if (current->
type != CT_FLOATING_CON)
Output * get_output_for_con(Con *con)
Returns the output for the given con.
A 'Con' represents everything from the X11 root window down to a single X11 window.
Output * get_output_from_string(Output *current_output, const char *output_str)
Returns an 'output' corresponding to one of left/right/down/up or a specific output name...
Output * get_output_by_name(const char *name, const bool require_active)
Returns the output with the given name or NULL.
Con * con_get_output(Con *con)
Gets the output container (first container with CT_OUTPUT in hierarchy) this node is on...
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_FIRST(head)
void con_move_to_workspace(Con *con, Con *workspace, bool fix_coordinates, bool dont_warp, bool ignore_focus)
Moves the given container to the currently focused container on the given workspace.
void output_push_sticky_windows(Con *to_focus)
Iterates over all outputs and pushes sticky windows to the currently visible workspace on that output...
Con * output_get_content(Con *output)
Returns the output container below the given output container.
bool con_is_sticky(Con *con)
Returns whether the container or any of its children is sticky.
An Output is a physical output on your graphics driver.
#define TAILQ_NEXT(elm, field)
Output * get_output_next_wrap(direction_t direction, Output *current)
Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
#define SLIST_FIRST(head)
names_head
List of names for the output.
char * output_primary_name(Output *output)
Retrieves the primary name of an output.
#define GREP_FIRST(dest, head, condition)
bool workspace_is_visible(Con *ws)
Returns true if the workspace is currently visible.