diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 18:08:31 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-22 18:08:31 +0100 |
| commit | fe5acb939a5764901b4fa46e1822eb5958752a1a (patch) | |
| tree | 51f60b22f634f7b3bd5ce28cc6a1d572984bfab8 | |
| parent | nah, I don't want 640 as MASTERWIDTH (diff) | |
| download | dwm-fe5acb939a5764901b4fa46e1822eb5958752a1a.tar.gz dwm-fe5acb939a5764901b4fa46e1822eb5958752a1a.zip | |
made Fnt an anonymous inner struct
Diffstat (limited to '')
| -rw-r--r-- | dwm.h | 16 |
1 files changed, 7 insertions, 9 deletions
| @@ -42,20 +42,18 @@ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | |||
| 42 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ | 42 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
| 43 | 43 | ||
| 44 | typedef struct { | 44 | typedef struct { |
| 45 | int ascent; | ||
| 46 | int descent; | ||
| 47 | int height; | ||
| 48 | XFontSet set; | ||
| 49 | XFontStruct *xfont; | ||
| 50 | } Fnt; | ||
| 51 | |||
| 52 | typedef struct { | ||
| 53 | int x, y, w, h; | 45 | int x, y, w, h; |
| 54 | unsigned long norm[ColLast]; | 46 | unsigned long norm[ColLast]; |
| 55 | unsigned long sel[ColLast]; | 47 | unsigned long sel[ColLast]; |
| 56 | Drawable drawable; | 48 | Drawable drawable; |
| 57 | Fnt font; | ||
| 58 | GC gc; | 49 | GC gc; |
| 50 | struct Fnt { | ||
| 51 | int ascent; | ||
| 52 | int descent; | ||
| 53 | int height; | ||
| 54 | XFontSet set; | ||
| 55 | XFontStruct *xfont; | ||
| 56 | } font; | ||
| 59 | } DC; /* draw context */ | 57 | } DC; /* draw context */ |
| 60 | 58 | ||
| 61 | typedef struct Client Client; | 59 | typedef struct Client Client; |
