Xinqi Bao's Git
454f7bf901ec79b21d0f8a7dcc677d532a1b5dca
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
10 #include <X11/Xutil.h>
13 enum { WMState
, WMProtocols
, WMDelete
, WMLast
};
14 enum { NetSupported
, NetWMName
, NetLast
};
17 enum { CurNormal
, CurResize
, CurMove
, CurInput
, CurLast
};
20 enum { RFloat
, RGrid
, RLast
};
22 typedef struct Client Client
;
23 typedef struct Key Key
;
43 void (*func
)(char *arg
);
48 extern Window root
, barwin
;
49 extern Atom wm_atom
[WMLast
], net_atom
[NetLast
];
50 extern Cursor cursor
[CurLast
];
51 extern XRectangle rect
, barrect
;
54 extern void (*handler
[LASTEvent
]) (XEvent
*);
56 extern int screen
, sel_screen
;
57 extern char *bartext
, tag
[256];
60 extern Client
*client
;
63 extern void draw_bar();
66 extern void run(char *arg
);
69 extern Client
*create_client(Window w
, XWindowAttributes
*wa
);
70 extern void manage(Client
*c
);
73 extern void update_keys();
76 extern int win_proto(Window w
);