i3
|
Go to the source code of this file.
Functions | |
static Output * | get_screen_at (int x, int y) |
static void | query_screens (xcb_connection_t *conn) |
void | xinerama_init (void) |
We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen. | |
Variables | |
static int | num_screens |
static Output* get_screen_at | ( | int | x, |
int | y | ||
) | [static] |
Definition at line 23 of file xinerama.c.
References outputs, xoutput::rect, TAILQ_FOREACH, Rect::x, and Rect::y.
Referenced by query_screens().
static void query_screens | ( | xcb_connection_t * | conn | ) | [static] |
Definition at line 37 of file xinerama.c.
References xoutput::active, xoutput::con, DLOG, ELOG, get_screen_at(), Rect::height, height, init_ws_for_output(), min(), xoutput::name, num_screens, output_get_content(), output_init_con(), outputs, xoutput::rect, sasprintf(), scalloc(), TAILQ_INSERT_HEAD, TAILQ_INSERT_TAIL, Rect::width, width, Rect::x, and Rect::y.
Referenced by xinerama_init().
void xinerama_init | ( | void | ) |
We have just established a connection to the X server and need the initial Xinerama information to setup workspaces for each screen.
Definition at line 93 of file xinerama.c.
References conn, disable_randr(), DLOG, FREE, outputs, query_screens(), and TAILQ_FOREACH.
Referenced by main().
int num_screens [static] |
Definition at line 17 of file xinerama.c.
Referenced by query_screens().