15 #include <xcb/randr.h>
18 extern struct outputs_head
outputs;
void disable_randr(xcb_connection_t *conn)
Disables RandR support by creating exactly one output with the size of the X11 screen.
Stores a rectangle, for example the size of a window, the child window etc.
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_wrap(direction_t direction, Output *current)
Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
An Output is a physical output on your graphics driver.
void randr_query_outputs(void)
Initializes the specified output, assigning the specified workspace to it.
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...
Output * get_first_output(void)
Returns the first output which is active.
Output * get_output_by_name(const char *name)
Returns the output with the given name if it is active (!) or NULL.
TAILQ_HEAD(outputs_head, xoutput)
A 'Con' represents everything from the X11 root window down to a single X11 window.
struct outputs_head outputs
void init_ws_for_output(Output *output, Con *content)
Initializes at least one workspace for this output, trying the following steps until there is at leas...
bool contained_by_output(Rect rect)
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.
void randr_init(int *event_base)
We have just established a connection to the X server and need the initial XRandR information to setu...