about summary refs log tree commit diff stats
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
parent0b5c14cf593c82b85570c45beac553dfce2f9689 (diff)
downloaddwm-0453c1d180ca868a740bcc032d2dac1f120f6c7e.tar.gz
recreated dwm.h
-rw-r--r--Makefile2
-rw-r--r--dwm.c22
-rw-r--r--dwm.h20
3 files changed, 23 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index dee43ed..1dde4b2 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ clean:
 dist: clean
 	@echo creating dist tarball
 	@mkdir -p dwm-${VERSION}
-	@cp -R LICENSE Makefile README config.def.h config.mk \
+	@cp -R LICENSE Makefile README config.def.h config.mk dwm.h \
 		dwm.1 ${SRC} dwm-${VERSION}
 	@tar -cf dwm-${VERSION}.tar dwm-${VERSION}
 	@gzip dwm-${VERSION}.tar
diff --git a/dwm.c b/dwm.c
index a4447f6..cce68cb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -25,6 +25,8 @@
  *
  * To understand everything else, start reading main().
  */
+#include "dwm.h"
+
 #include <errno.h>
 #include <locale.h>
 #include <stdarg.h>
@@ -39,7 +41,6 @@
 #include <X11/cursorfont.h>
 #include <X11/keysym.h>
 #include <X11/Xatom.h>
-#include <X11/Xlib.h>
 #include <X11/Xproto.h>
 #include <X11/Xutil.h>
 
@@ -55,25 +56,6 @@ enum { ColBorder, ColFG, ColBG, ColLast };		/* color */
 enum { NetSupported, NetWMName, NetLast };		/* EWMH atoms */
 enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */
 
-/* typedefs */
-typedef struct Client Client;
-
-struct Client {
-	char name[256];
-	int x, y, w, h;
-	int rx, ry, rw, rh; /* revert geometry */
-	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
-	int minax, maxax, minay, maxay;
-	long flags;
-	unsigned int border, oldborder;
-	Bool isbanned, isfixed, ismax, isfloating, wasfloating;
-	Bool *tags;
-	Client *next;
-	Client *prev;
-	Client *snext;
-	Window win;
-};
-
 typedef struct {
 	int x, y, w, h;
 	unsigned long norm[ColLast];
diff --git a/dwm.h b/dwm.h
new file mode 100644
index 0000000..10834f5
--- /dev/null
+++ b/dwm.h
@@ -0,0 +1,20 @@
+/* See LICENSE file for copyright and license details. */
+#include <X11/Xlib.h>
+
+/* typedefs */
+typedef struct Client Client;
+struct Client {
+	char name[256];
+	int x, y, w, h;
+	int rx, ry, rw, rh; /* revert geometry */
+	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
+	int minax, maxax, minay, maxay;
+	long flags;
+	unsigned int border, oldborder;
+	Bool isbanned, isfixed, ismax, isfloating, wasfloating;
+	Bool *tags;
+	Client *next;
+	Client *prev;
+	Client *snext;
+	Window win;
+};
id='n265' href='#n265'>265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337