-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathclient.h
46 lines (41 loc) · 1.12 KB
/
client.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CLIENT_H
#define CLIENT_H
#include <X11/Xlib.h>
#include <X11/Xutil.h>
struct _Icon;
struct _Scrn;
typedef struct _Client {
struct _Client *next;
struct _Scrn *scr;
struct _Icon *icon;
struct module *module;
int wflags;
Window window, parent;
Window close, drag, iconify, zoom, depth, resize;
Window clicked;
Colormap colormap;
int x, y, pwidth, pheight, dragw, framewidth, frameheight;
int zoomx, zoomy, zoomw, zoomh;
int old_bw, proto, state, gravity, reparenting;
int active, shaped;
#ifdef USE_FONTSETS
char *title;
#else
XTextProperty title;
#endif
XSizeHints sizehints;
struct _Style *style;
} Client;
extern Client *clients;
extern Client *getclient(Window);
extern Client *getclientbyicon(Window);
extern Client *createclient(Window);
extern void rmclient(Client *);
extern void flushclients(void);
extern void scrsendconfig(struct _Scrn *);
extern void sendconfig(Client *);
extern void getstate(Client *);
extern void grav_map_frame_to_win(Client *, int, int, int *, int *);
extern void grav_map_win_to_frame(Client *, int, int, int *, int *);
extern void setclientstate(Client *, int);
#endif