summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-10-11 20:47:34 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-10-11 20:47:34 +0200
commit0453c1d180ca868a740bcc032d2dac1f120f6c7e (patch)
treea7a1cff6276dfde5fa411de70d7047f190b66967 /dwm.c
parentadded Mod1-Tab description to dwm.1 (diff)
downloaddwm-0453c1d180ca868a740bcc032d2dac1f120f6c7e.tar.gz
dwm-0453c1d180ca868a740bcc032d2dac1f120f6c7e.zip
recreated dwm.h
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/dwm.c b/dwm.c
index a4447f6..cce68cb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -25,6 +25,8 @@
25 * 25 *
26 * To understand everything else, start reading main(). 26 * To understand everything else, start reading main().
27 */ 27 */
28#include "dwm.h"
29
28#include <errno.h> 30#include <errno.h>
29#include <locale.h> 31#include <locale.h>
30#include <stdarg.h> 32#include <stdarg.h>
@@ -39,7 +41,6 @@
39#include <X11/cursorfont.h> 41#include <X11/cursorfont.h>
40#include <X11/keysym.h> 42#include <X11/keysym.h>
41#include <X11/Xatom.h> 43#include <X11/Xatom.h>
42#include <X11/Xlib.h>
43#include <X11/Xproto.h> 44#include <X11/Xproto.h>
44#include <X11/Xutil.h> 45#include <X11/Xutil.h>
45 46
@@ -55,25 +56,6 @@ enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
55enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ 56enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
56enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */ 57enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
57 58
58/* typedefs */
59typedef struct Client Client;
60
61struct Client {
62 char name[256];
63 int x, y, w, h;
64 int rx, ry, rw, rh; /* revert geometry */
65 int basew, baseh, incw, inch, maxw, maxh, minw, minh;
66 int minax, maxax, minay, maxay;
67 long flags;
68 unsigned int border, oldborder;
69 Bool isbanned, isfixed, ismax, isfloating, wasfloating;
70 Bool *tags;
71 Client *next;
72 Client *prev;
73 Client *snext;
74 Window win;
75};
76
77typedef struct { 59typedef struct {
78 int x, y, w, h; 60 int x, y, w, h;
79 unsigned long norm[ColLast]; 61 unsigned long norm[ColLast];