diff options
| author | arg@10ksloc.org <unknown> | 2006-08-03 10:55:07 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-03 10:55:07 +0200 |
| commit | 8cc7f3bace087dfb024a23115c211d82b35614ae (patch) | |
| tree | 5288e485d560dff018832a5160a19e6c69e93dd4 /dwm.h | |
| parent | implemented the idea presented by Sander for dwm target (diff) | |
| download | dwm-8cc7f3bace087dfb024a23115c211d82b35614ae.tar.gz dwm-8cc7f3bace087dfb024a23115c211d82b35614ae.zip | |
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -51,7 +51,6 @@ struct DC { /* draw context */ | |||
| 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 */ |
| @@ -61,13 +60,15 @@ struct Client { | |||
| 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 *); |
| @@ -104,7 +105,7 @@ 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(); |
