blob: 1f33775c9baeab90b89b493965d0517b1cbfc11a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _XSERVER_H
#define _XSERVER_H
#include <X11/Xlib.h>
#define XSERVER_XROOT(_xserver) RootWindow((_xserver)->display, (_xserver)->screen_num)
#define XSERVER_XVISUAL(_xserver) DefaultVisual((_xserver)->display, (_xserver)->screen_num)
#define XSERVER_XDEPTH(_xserver) DefaultDepth((_xserver)->display, (_xserver)->screen_num)
/* bare xserver context, split out for vmon's shared monitoring chart use sake */
typedef struct vwm_xserver_t {
Display *display;
Colormap cmap;
int screen_num;
GC gc;
} vwm_xserver_t;
vwm_xserver_t * vwm_xserver_open(void);
void vwm_xserver_close(vwm_xserver_t *);
#endif
|