dwm-meillo

view wm.h @ 3:e969f3575b7a

several new changes, made gridmenu working
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 19:46:24 +0200
parents a79188fe4a40
children e5018cae273f
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 #include "config.h"
7 #include "draw.h"
8 #include "util.h"
10 #include <X11/Xutil.h>
12 /* WM atoms */
13 enum { WMState, WMProtocols, WMDelete, WMLast };
15 /* NET atoms */
16 enum { NetSupported, NetWMName, NetLast };
18 /* Cursor */
19 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
21 /* Rects */
22 enum { RFloat, RGrid, RLast };
24 typedef struct Client Client;
25 typedef struct Tag Tag;
27 struct Client {
28 Tag *tag;
29 char name[256];
30 int proto;
31 Window win;
32 Window trans;
33 Window title;
34 GC gc;
35 XSizeHints size;
36 XRectangle r[RLast];
37 Client *next;
38 Client *tnext;
39 Client *tprev;
40 };
42 struct Tag {
43 char name[256];
44 Client *clients;
45 Client *sel;
46 XRectangle r;
47 };
49 extern Display *dpy;
50 extern Window root;
51 extern XRectangle rect;
52 extern Atom wm_atom[WMLast];
53 extern Atom net_atom[NetLast];
54 extern Cursor cursor[CurLast];
55 extern Pixmap pmap;
57 extern int screen, sel_screen;
58 extern unsigned int kmask, numlock_mask;
60 extern Brush brush;
62 /* wm.c */