4 * i3 - an improved dynamic tiling window manager
6 * © 2009-2010 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
12 #include <xcb/randr.h>
17 TAILQ_HEAD(outputs_head, xoutput);
18 extern struct outputs_head outputs;
21 * Returns true if both screen objects describe the same screen (checks their
25 bool screens_are_equal(Output *screen1, Output *screen2);
28 * We have just established a connection to the X server and need the initial
29 * XRandR information to setup workspaces for each screen.
32 void initialize_randr(xcb_connection_t *conn, int *event_base);
35 * (Re-)queries the outputs via RandR and stores them in the list of outputs.
38 void randr_query_screens(xcb_connection_t *conn);
41 * Returns the first output which is active.
44 Output *get_first_output();
47 * Looks in virtual_screens for the i3Screen which contains coordinates x, y
50 Output *get_screen_containing(int x, int y);
53 * Gets the screen which is the last one in the given direction, for example
54 * the screen on the most bottom when direction == D_DOWN, the screen most
55 * right when direction == D_RIGHT and so on.
57 * This function always returns a screen.
60 Output *get_screen_most(direction_t direction, Output *current);