i3
xinerama.c File Reference
#include "all.h"
#include <xcb/xinerama.h>
Include dependency graph for xinerama.c:

Go to the source code of this file.

Functions

static Outputget_screen_at (unsigned int x, unsigned int y)
 
static void query_screens (xcb_connection_t *conn)
 
static void use_root_output (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
 

Function Documentation

◆ get_screen_at()

static Output * get_screen_at ( unsigned int x,
unsigned int y )
static

Definition at line 22 of file xinerama.c.

References outputs, xoutput::rect, TAILQ_FOREACH, Rect::x, Rect::y, and y.

Referenced by query_screens().

◆ query_screens()

static void query_screens ( xcb_connection_t * conn)
static

◆ use_root_output()

static void use_root_output ( xcb_connection_t * conn)
static

Definition at line 99 of file xinerama.c.

References xoutput::active, conn, create_root_output(), init_ws_for_output(), output_init_con(), outputs, and TAILQ_INSERT_TAIL.

Referenced by xinerama_init().

Here is the call graph for this function:

◆ 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 112 of file xinerama.c.

References conn, DLOG, FREE, query_screens(), and use_root_output().

Referenced by main().

Here is the call graph for this function:

Variable Documentation

◆ num_screens

int num_screens
static

Definition at line 16 of file xinerama.c.

Referenced by query_screens().