made Fnt an anonymous inner struct
authorAnselm R. Garbe <arg@suckless.org>
Thu, 22 Feb 2007 18:17:07 +0100
changeset 835 93ecc09cd1ad
parent 834 1a60e0995e77
child 836 52c1caae3fab
made Fnt an anonymous inner struct
dwm.h
--- a/dwm.h	Thu Feb 22 18:08:31 2007 +0100
+++ b/dwm.h	Thu Feb 22 18:17:07 2007 +0100
@@ -41,21 +41,6 @@
 enum { CurNormal, CurResize, CurMove, CurLast };	/* cursor */
 enum { ColBorder, ColFG, ColBG, ColLast };		/* color */
 
-typedef struct {
-	int x, y, w, h;
-	unsigned long norm[ColLast];
-	unsigned long sel[ColLast];
-	Drawable drawable;
-	GC gc;
-	struct Fnt {
-		int ascent;
-		int descent;
-		int height;
-		XFontSet set;
-		XFontStruct *xfont;
-	} font;
-} DC; /* draw context */
-
 typedef struct Client Client;
 struct Client {
 	char name[256];
@@ -74,6 +59,21 @@
 };
 
 typedef struct {
+	int x, y, w, h;
+	unsigned long norm[ColLast];
+	unsigned long sel[ColLast];
+	Drawable drawable;
+	GC gc;
+	struct {
+		int ascent;
+		int descent;
+		int height;
+		XFontSet set;
+		XFontStruct *xfont;
+	} font;
+} DC; /* draw context */
+
+typedef struct {
 	const char *symbol;
 	void (*arrange)(void);
 } Layout;