dwm-meillo

diff dwm.h @ 333:827f8f6c9e97

separated setup stuff into main.c:setup() - this makes main() more readable
author Anselm R. Garbe <arg@10kloc.org>
date Wed, 23 Aug 2006 10:21:57 +0200
parents 96d09fd98e89
children a1901753deef
line diff
     1.1 --- a/dwm.h	Tue Aug 22 19:56:29 2006 +0200
     1.2 +++ b/dwm.h	Wed Aug 23 10:21:57 2006 +0200
     1.3 @@ -11,15 +11,10 @@
     1.4  #define MOUSEMASK		(BUTTONMASK | PointerMotionMask)
     1.5  #define PROTODELWIN		1
     1.6  
     1.7 -typedef union Arg Arg;
     1.8 -typedef struct Client Client;
     1.9 -typedef struct DC DC;
    1.10 -typedef struct Fnt Fnt;
    1.11 -
    1.12 -union Arg {
    1.13 +typedef union {
    1.14  	const char *cmd;
    1.15  	int i;
    1.16 -};
    1.17 +} Arg;
    1.18  
    1.19  /* atoms */
    1.20  enum { NetSupported, NetWMName, NetLast };
    1.21 @@ -28,18 +23,18 @@
    1.22  /* cursor */
    1.23  enum { CurNormal, CurResize, CurMove, CurLast };
    1.24  
    1.25 -/* windowcorners */
    1.26 +/* window corners */
    1.27  typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner;
    1.28  
    1.29 -struct Fnt {
    1.30 +typedef struct {
    1.31  	int ascent;
    1.32  	int descent;
    1.33  	int height;
    1.34  	XFontSet set;
    1.35  	XFontStruct *xfont;
    1.36 -};
    1.37 +} Fnt;
    1.38  
    1.39 -struct DC { /* draw context */
    1.40 +typedef struct { /* draw context */
    1.41  	int x, y, w, h;
    1.42  	unsigned long bg;
    1.43  	unsigned long fg;
    1.44 @@ -47,8 +42,9 @@
    1.45  	Drawable drawable;
    1.46  	Fnt font;
    1.47  	GC gc;
    1.48 -};
    1.49 +} DC;
    1.50  
    1.51 +typedef struct Client Client;
    1.52  struct Client {
    1.53  	char name[256];
    1.54  	int proto;