瀏覽代碼

made Fnt an anonymous inner struct

Anselm R. Garbe 18 年之前
父節點
當前提交
fe5acb939a
共有 1 個文件被更改,包括 7 次插入9 次删除
  1. 7 9
      dwm.h

+ 7 - 9
dwm.h

@@ -41,21 +41,19 @@ enum { WMProtocols, WMDelete, WMState, WMLast };	/* default atoms */
 enum { CurNormal, CurResize, CurMove, CurLast };	/* cursor */
 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;