20extern struct outputs_head
outputs;
32void randr_init(
int *event_base,
const bool disable_randr15);
xcb_connection_t * conn
XCB connection and root screen.
#define TAILQ_HEAD(name, type)
Output * get_output_by_name(const char *name, const bool require_active)
Returns the output with the given name or NULL.
Output * get_output_from_rect(Rect rect)
Returns the active output which contains the midpoint of the given rect.
Output * output_containing_rect(Rect rect)
In output_containing_rect, we check if any active output contains part of the container.
Output * get_output_with_dimensions(Rect rect)
Returns the active output which spans exactly the area specified by rect or NULL if there is no outpu...
Output * get_output_containing(unsigned int x, unsigned int y)
Returns the active (!) output which contains the coordinates x, y or NULL if there is no output which...
void init_ws_for_output(Output *output)
Initializes at least one workspace for this output, trying the following steps until there is at leas...
void randr_query_outputs(void)
(Re-)queries the outputs via RandR and stores them in the list of outputs.
Output * get_output_next_wrap(direction_t direction, Output *current)
Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
void output_init_con(Output *output)
Initializes a CT_OUTPUT Con (searches existing ones from inplace restart before) to use for the given...
Output * get_output_next(direction_t direction, Output *current, output_close_far_t close_far)
Gets the output which is the next one in the given direction.
struct outputs_head outputs
void randr_init(int *event_base, const bool disable_randr15)
We have just established a connection to the X server and need the initial XRandR information to setu...
Output * create_root_output(xcb_connection_t *conn)
Creates an output covering the root window.
Output * get_first_output(void)
Returns the first output which is active.
void randr_disable_output(Output *output)
Disables the output and moves its content.
Stores a rectangle, for example the size of a window, the child window etc.
An Output is a physical output on your graphics driver.