4 * i3 - an improved dynamic tiling window manager
6 * (c) 2009 Michael Stapelberg and contributors
8 * See file LICENSE for license information.
16 TAILQ_HEAD(screens_head, Screen);
17 extern struct screens_head *virtual_screens;
20 * We have just established a connection to the X server and need the initial
21 * Xinerama information to setup workspaces for each screen.
24 void initialize_xinerama(xcb_connection_t *conn);
27 * This is called when the rootwindow receives a configure_notify event and
28 * therefore the number/position of the Xinerama screens could have changed.
31 void xinerama_requery_screens(xcb_connection_t *conn);
34 * Looks in virtual_screens for the i3Screen whose start coordinates are x, y
37 i3Screen *get_screen_at(int x, int y, struct screens_head *screenlist);
40 * Looks in virtual_screens for the i3Screen which contains coordinates x, y
43 i3Screen *get_screen_containing(int x, int y);
46 * Gets the screen which is the last one in the given direction, for example
47 * the screen on the most bottom when direction == D_DOWN, the screen most
48 * right when direction == D_RIGHT and so on.
50 * This function always returns a screen.
53 i3Screen *get_screen_most(direction_t direction);