made Fnt an anonymous inner struct
authorAnselm R. Garbe <arg@suckless.org>
Thu, 22 Feb 2007 18:08:31 +0100
changeset 834 1a60e0995e77
parent 833 5dbe50521b57
child 835 93ecc09cd1ad
made Fnt an anonymous inner struct
dwm.h
--- a/dwm.h	Thu Feb 22 17:58:45 2007 +0100
+++ b/dwm.h	Thu Feb 22 18:08:31 2007 +0100
@@ -42,20 +42,18 @@
 enum { ColBorder, ColFG, ColBG, ColLast };		/* color */
 
 typedef struct {
-	int ascent;
-	int descent;
-	int height;
-	XFontSet set;
-	XFontStruct *xfont;
-} Fnt;
-
-typedef struct {
 	int x, y, w, h;
 	unsigned long norm[ColLast];
 	unsigned long sel[ColLast];
 	Drawable drawable;
-	Fnt font;
 	GC gc;
+	struct Fnt {
+		int ascent;
+		int descent;
+		int height;
+		XFontSet set;
+		XFontStruct *xfont;
+	} font;
 } DC; /* draw context */
 
 typedef struct Client Client;