annotate wm.h @ 5:e5018cae273f
added several other stuff
author |
Anselm R. Garbe <garbeam@wmii.de> |
date |
Mon, 10 Jul 2006 22:16:48 +0200 |
parents |
e969f3575b7a |
children |
e0cefb3981c8 |
rev |
line source |
garbeam@0
|
1 /*
|
garbeam@0
|
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
|
garbeam@0
|
3 * See LICENSE file for license details.
|
garbeam@0
|
4 */
|
garbeam@0
|
5
|
garbeam@3
|
6 #include "config.h"
|
garbeam@2
|
7 #include "draw.h"
|
garbeam@2
|
8 #include "util.h"
|
garbeam@2
|
9
|
garbeam@0
|
10 #include <X11/Xutil.h>
|
garbeam@0
|
11
|
garbeam@5
|
12 /* atoms */
|
garbeam@0
|
13 enum { WMState, WMProtocols, WMDelete, WMLast };
|
garbeam@0
|
14 enum { NetSupported, NetWMName, NetLast };
|
garbeam@0
|
15
|
garbeam@5
|
16 /* cursor */
|
garbeam@0
|
17 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
|
garbeam@0
|
18
|
garbeam@5
|
19 /* rects */
|
garbeam@0
|
20 enum { RFloat, RGrid, RLast };
|
garbeam@0
|
21
|
garbeam@0
|
22 typedef struct Client Client;
|
garbeam@0
|
23 typedef struct Tag Tag;
|
garbeam@0
|
24
|
garbeam@0
|
25 struct Client {
|
garbeam@0
|
26 Tag *tag;
|
garbeam@0
|
27 char name[256];
|
garbeam@0
|
28 int proto;
|
garbeam@5
|
29 unsigned int border;
|
garbeam@5
|
30 Bool fixedsize;
|
garbeam@0
|
31 Window win;
|
garbeam@0
|
32 Window trans;
|
garbeam@0
|
33 Window title;
|
garbeam@0
|
34 XSizeHints size;
|
garbeam@0
|
35 XRectangle r[RLast];
|
garbeam@0
|
36 Client *next;
|
garbeam@5
|
37 Client *snext;
|
garbeam@0
|
38 };
|
garbeam@0
|
39
|
garbeam@0
|
40 struct Tag {
|
garbeam@0
|
41 char name[256];
|
garbeam@5
|
42 Client *stack;
|
garbeam@0
|
43 XRectangle r;
|
garbeam@5
|
44 Tag *next;
|
garbeam@5
|
45 Tag *cnext;
|
garbeam@0
|
46 };
|
garbeam@0
|
47
|
garbeam@0
|
48 extern Display *dpy;
|
garbeam@5
|
49 extern Window root, barwin;
|
garbeam@5
|
50 extern Atom wm_atom[WMLast], net_atom[NetLast];
|
garbeam@0
|
51 extern Cursor cursor[CurLast];
|
garbeam@5
|
52 extern XRectangle rect, barrect;
|
garbeam@5
|
53 extern Bool running;
|
garbeam@5
|
54 extern void (*handler[LASTEvent]) (XEvent *);
|
garbeam@0
|
55
|
garbeam@3
|
56 extern int screen, sel_screen;
|
garbeam@5
|
57 extern unsigned int lock_mask, numlock_mask;
|
garbeam@5
|
58 extern char *bartext, *shell;
|
garbeam@3
|
59
|
garbeam@3
|
60 extern Brush brush;
|
garbeam@3
|
61
|
garbeam@5
|
62 /* bar.c */
|
garbeam@5
|
63 extern void draw_bar();
|
garbeam@5
|
64
|
garbeam@5
|
65 /* client.c */
|
garbeam@5
|
66 extern Client *create_client(Window w, XWindowAttributes *wa);
|
garbeam@5
|
67 extern void manage(Client *c);
|
garbeam@5
|
68
|
garbeam@0
|
69 /* wm.c */
|
garbeam@5
|
70 extern int win_proto(Window w);
|