Mercurial > dwm-meillo
comparison dwm.h @ 173:1db04019684e
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
author | arg@10ksloc.org |
---|---|
date | Thu, 03 Aug 2006 10:55:07 +0200 |
parents | e0535db04dfe |
children | e848966a1ac6 |
comparison
equal
deleted
inserted
replaced
172:af781faa40d6 | 173:1db04019684e |
---|---|
49 GC gc; | 49 GC gc; |
50 }; | 50 }; |
51 | 51 |
52 struct Client { | 52 struct Client { |
53 char name[256]; | 53 char name[256]; |
54 char *tags[TLast]; | |
55 int proto; | 54 int proto; |
56 int x, y, w, h; | 55 int x, y, w, h; |
57 int tx, ty, tw, th; /* title */ | 56 int tx, ty, tw, th; /* title */ |
58 int basew, baseh, incw, inch, maxw, maxh, minw, minh; | 57 int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
59 int grav; | 58 int grav; |
60 long flags; | 59 long flags; |
61 unsigned int border; | 60 unsigned int border; |
62 Bool isfloat; | 61 Bool isfloat; |
63 Bool ismax; | 62 Bool ismax; |
63 Bool tags[TLast]; | |
64 Client *next; | 64 Client *next; |
65 Client *prev; | 65 Client *prev; |
66 Window win; | 66 Window win; |
67 Window title; | 67 Window title; |
68 }; | 68 }; |
69 | 69 |
70 extern char *tags[TLast], stext[1024]; | 70 extern const char *tags[TLast]; |
71 extern char stext[1024]; | |
71 extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; | 72 extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
72 extern void (*handler[LASTEvent])(XEvent *); | 73 extern void (*handler[LASTEvent])(XEvent *); |
73 extern void (*arrange)(Arg *); | 74 extern void (*arrange)(Arg *); |
74 extern Atom wmatom[WMLast], netatom[NetLast]; | 75 extern Atom wmatom[WMLast], netatom[NetLast]; |
75 extern Bool running, issel; | 76 extern Bool running, issel; |
102 extern void drawall(); | 103 extern void drawall(); |
103 extern void drawstatus(); | 104 extern void drawstatus(); |
104 extern void drawtitle(Client *c); | 105 extern void drawtitle(Client *c); |
105 extern unsigned long getcolor(const char *colstr); | 106 extern unsigned long getcolor(const char *colstr); |
106 extern void setfont(const char *fontstr); | 107 extern void setfont(const char *fontstr); |
107 extern unsigned int textw(char *text); | 108 extern unsigned int textw(const char *text); |
108 | 109 |
109 /* event.c */ | 110 /* event.c */ |
110 extern void grabkeys(); | 111 extern void grabkeys(); |
111 | 112 |
112 /* main.c */ | 113 /* main.c */ |