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 * Returns true if both screen objects describe the same screen (checks their
24 bool screens_are_equal(i3Screen *screen1, i3Screen *screen2);
27 * We have just established a connection to the X server and need the initial
28 * Xinerama information to setup workspaces for each screen.
31 void initialize_xinerama(xcb_connection_t *conn);
34 * This is called when the rootwindow receives a configure_notify event and
35 * therefore the number/position of the Xinerama screens could have changed.
38 void xinerama_requery_screens(xcb_connection_t *conn);
41 * Looks in virtual_screens for the i3Screen whose start coordinates are x, y
44 i3Screen *get_screen_at(int x, int y, struct screens_head *screenlist);
47 * Looks in virtual_screens for the i3Screen which contains coordinates x, y
50 i3Screen *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 i3Screen *get_screen_most(direction_t direction, i3Screen *current);