Mercurial > 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 wrap: on
line diff
--- a/dwm.h Tue Aug 22 19:56:29 2006 +0200 +++ b/dwm.h Wed Aug 23 10:21:57 2006 +0200 @@ -11,15 +11,10 @@ #define MOUSEMASK (BUTTONMASK | PointerMotionMask) #define PROTODELWIN 1 -typedef union Arg Arg; -typedef struct Client Client; -typedef struct DC DC; -typedef struct Fnt Fnt; - -union Arg { +typedef union { const char *cmd; int i; -}; +} Arg; /* atoms */ enum { NetSupported, NetWMName, NetLast }; @@ -28,18 +23,18 @@ /* cursor */ enum { CurNormal, CurResize, CurMove, CurLast }; -/* windowcorners */ +/* window corners */ typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner; -struct Fnt { +typedef struct { int ascent; int descent; int height; XFontSet set; XFontStruct *xfont; -}; +} Fnt; -struct DC { /* draw context */ +typedef struct { /* draw context */ int x, y, w, h; unsigned long bg; unsigned long fg; @@ -47,8 +42,9 @@ Drawable drawable; Fnt font; GC gc; -}; +} DC; +typedef struct Client Client; struct Client { char name[256]; int proto;