17 #include <xcb/randr.h> 20 extern struct outputs_head
outputs;
32 void randr_init(
int *event_base,
const bool disable_randr15);
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...
A 'Con' represents everything from the X11 root window down to a single X11 window.
xcb_connection_t * conn
XCB connection and root screen.
Output * get_output_next_wrap(direction_t direction, Output *current)
Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
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.
Output * create_root_output(xcb_connection_t *conn)
TAILQ_HEAD(outputs_head, xoutput)
bool contained_by_output(Rect rect)
An Output is a physical output on your graphics driver.
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_output_by_name(const char *name, const bool require_active)
Returns the output with the given name or NULL.
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...
void randr_query_outputs(void)
Initializes the specified output, assigning the specified workspace to it.
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.
void output_init_con(Output *output)
Initializes a CT_OUTPUT Con (searches existing ones from inplace restart before) to use for the given...
Stores a rectangle, for example the size of a window, the child window etc.
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...