trecreated dwm.h - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0453c1d180ca868a740bcc032d2dac1f120f6c7e
(DIR) parent 0b5c14cf593c82b85570c45beac553dfce2f9689
(HTM) Author: Anselm R. Garbe <garbeam@gmail.com>
Date: Thu, 11 Oct 2007 20:47:34 +0200
recreated dwm.h
Diffstat:
M Makefile | 2 +-
M dwm.c | 22 ++--------------------
A dwm.h | 20 ++++++++++++++++++++
3 files changed, 23 insertions(+), 21 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -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
(DIR) diff --git a/dwm.c b/dwm.c
t@@ -25,6 +25,8 @@
*
* To understand everything else, start reading main().
*/
+#include "dwm.h"
+
#include <errno.h>
#include <locale.h>
#include <stdarg.h>
t@@ -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>
t@@ -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];
(DIR) diff --git a/dwm.h b/dwm.h
t@@ -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;
+};