aboutsummaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-23 10:21:57 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-23 10:21:57 +0200
commitb5159dfd2f552696b049b95e0d368a2c33a1002a (patch)
tree111ed79d6fb06ad84b1930a27f555915fba29ed6 /dwm.h
parent07c2659806e95499b4a258ff1961e61c541f50b3 (diff)
downloaddwm-b5159dfd2f552696b049b95e0d368a2c33a1002a.tar.gz
separated setup stuff into main.c:setup() - this makes main() more readable
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/dwm.h b/dwm.h
index b96facd..4e9c6b5 100644
--- a/dwm.h
+++ b/dwm.h
@@ -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 @@ enum { WMProtocols, WMDelete, WMLast };
/* 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 @@ struct DC { /* draw context */
Drawable drawable;
Fnt font;
GC gc;
-};
+} DC;
+typedef struct Client Client;
struct Client {
char name[256];
int proto;
remember that computers suck.