2 #define I3__FILE__ "output.c"
4 * vim:ts=4:sw=4:expandtab
6 * i3 - an improved dynamic tiling window manager
7 * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
9 * output.c: Output (monitor) related functions.
15 * Returns the output container below the given output container.
18 Con *output_get_content(Con *output) {
21 TAILQ_FOREACH(child, &(output->nodes_head), nodes)
22 if (child->type == CT_CON)
29 * Returns an 'output' corresponding to one of left/right/down/up or a specific
33 Output *get_output_from_string(Output *current_output, const char *output_str) {
36 if (strcasecmp(output_str, "left") == 0)
37 output = get_output_next_wrap(D_LEFT, current_output);
38 else if (strcasecmp(output_str, "right") == 0)
39 output = get_output_next_wrap(D_RIGHT, current_output);
40 else if (strcasecmp(output_str, "up") == 0)
41 output = get_output_next_wrap(D_UP, current_output);
42 else if (strcasecmp(output_str, "down") == 0)
43 output = get_output_next_wrap(D_DOWN, current_output);
45 output = get_output_by_name(output_str);