summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-22 18:08:31 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-22 18:08:31 +0100
commitfe5acb939a5764901b4fa46e1822eb5958752a1a (patch)
tree51f60b22f634f7b3bd5ce28cc6a1d572984bfab8 /dwm.h
parentnah, I don't want 640 as MASTERWIDTH (diff)
downloaddwm-fe5acb939a5764901b4fa46e1822eb5958752a1a.tar.gz
dwm-fe5acb939a5764901b4fa46e1822eb5958752a1a.zip
made Fnt an anonymous inner struct
Diffstat (limited to '')
-rw-r--r--dwm.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/dwm.h b/dwm.h
index a556b73..ce9707a 100644
--- a/dwm.h
+++ b/dwm.h
@@ -42,20 +42,18 @@ enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
42enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ 42enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
43 43
44typedef struct { 44typedef struct {
45 int ascent;
46 int descent;
47 int height;
48 XFontSet set;
49 XFontStruct *xfont;
50} Fnt;
51
52typedef 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
61typedef struct Client Client; 59typedef struct Client Client;