made Fnt an anonymous inner struct
This commit is contained in:
		
							
								
								
									
										16
									
								
								dwm.h
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								dwm.h
									
									
									
									
									
								
							@@ -42,20 +42,18 @@ enum { CurNormal, CurResize, CurMove, CurLast };	/* cursor */
 | 
				
			|||||||
enum { ColBorder, ColFG, ColBG, ColLast };		/* color */
 | 
					enum { ColBorder, ColFG, ColBG, ColLast };		/* color */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct {
 | 
					typedef struct {
 | 
				
			||||||
 | 
						int x, y, w, h;
 | 
				
			||||||
 | 
						unsigned long norm[ColLast];
 | 
				
			||||||
 | 
						unsigned long sel[ColLast];
 | 
				
			||||||
 | 
						Drawable drawable;
 | 
				
			||||||
 | 
						GC gc;
 | 
				
			||||||
 | 
						struct Fnt {
 | 
				
			||||||
		int ascent;
 | 
							int ascent;
 | 
				
			||||||
		int descent;
 | 
							int descent;
 | 
				
			||||||
		int height;
 | 
							int height;
 | 
				
			||||||
		XFontSet set;
 | 
							XFontSet set;
 | 
				
			||||||
		XFontStruct *xfont;
 | 
							XFontStruct *xfont;
 | 
				
			||||||
} Fnt;
 | 
						} font;
 | 
				
			||||||
 | 
					 | 
				
			||||||
typedef struct {
 | 
					 | 
				
			||||||
	int x, y, w, h;
 | 
					 | 
				
			||||||
	unsigned long norm[ColLast];
 | 
					 | 
				
			||||||
	unsigned long sel[ColLast];
 | 
					 | 
				
			||||||
	Drawable drawable;
 | 
					 | 
				
			||||||
	Fnt font;
 | 
					 | 
				
			||||||
	GC gc;
 | 
					 | 
				
			||||||
} DC; /* draw context */
 | 
					} DC; /* draw context */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef struct Client Client;
 | 
					typedef struct Client Client;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user