2 #define I3__FILE__ "output.c"
22 if (child->
type == CT_CON)
36 if (strcasecmp(output_str,
"left") == 0)
38 else if (strcasecmp(output_str,
"right") == 0)
40 else if (strcasecmp(output_str,
"up") == 0)
42 else if (strcasecmp(output_str,
"down") == 0)
58 Con *workspace, *visible_ws = NULL;
66 Con *current_ws = workspace;
73 for (child =
TAILQ_FIRST(&(current_ws->focus_head));
74 child !=
TAILQ_END(&(current_ws->focus_head));) {
77 if (current->
type != CT_FLOATING_CON)
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...
Con * output_get_content(Con *output)
Returns the output container below the given output container.
Output * get_output_next_wrap(direction_t direction, Output *current)
Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
void output_push_sticky_windows(Con *to_focus)
Iterates over all outputs and pushes sticky windows to the currently visible workspace on that output...
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_NEXT(elm, field)
#define GREP_FIRST(dest, head, condition)
bool con_is_sticky(Con *con)
Returns whether the container or any of its children is sticky.
bool workspace_is_visible(Con *ws)
Returns true if the workspace is currently visible.
A 'Con' represents everything from the X11 root window down to a single X11 window.
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.
#define TAILQ_FIRST(head)
Output * get_output_by_name(const char *name)
Returns the output with the given name if it is active (!) or NULL.
An Output is a physical output on your graphics driver.