dwm-meillo

view wm.h @ 2:a79188fe4a40

added new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 18:35:39 +0200
parents 491f34c11291
children e969f3575b7a
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 "draw.h"
7 #include "util.h"
9 #include <X11/Xutil.h>
11 /* WM atoms */
12 enum { WMState, WMProtocols, WMDelete, WMLast };
14 /* NET atoms */
15 enum { NetSupported, NetWMName, NetLast };
17 /* Cursor */
18 enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
20 /* Rects */
21 enum { RFloat, RGrid, RLast };
23 typedef struct Client Client;
24 typedef struct Tag Tag;
26 struct Client {
27 Tag *tag;
28 char name[256];
29 int proto;
30 Window win;
31 Window trans;
32 Window title;
33 GC gc;
34 XSizeHints size;
35 XRectangle r[RLast];
36 Client *next;
37 Client *tnext;
38 Client *tprev;
39 };
41 struct Tag {
42 char name[256];
43 Client *clients;
44 Client *sel;
45 XRectangle r;
46 };
48 extern Display *dpy;
49 extern Window root;
50 extern XRectangle rect;
51 extern int screen, sel_screen;
52 extern unsigned int kmask, numlock_mask;
53 extern Atom wm_atom[WMLast];
54 extern Atom net_atom[NetLast];
55 extern Cursor cursor[CurLast];
56 extern Pixmap pmap;
58 /* wm.c */