summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2009-07-01 17:08:10 +0100
committerAnselm R Garbe <garbeam@gmail.com>2009-07-01 17:08:10 +0100
commit25c1eb28f955adf241226596335f5d73b28620a0 (patch)
tree90179ebd4465ca1c789b09254366e6291bebd974
parentupdated year ranges (diff)
downloaddwm-25c1eb28f955adf241226596335f5d73b28620a0.tar.gz
dwm-25c1eb28f955adf241226596335f5d73b28620a0.zip
some minor fix if xinerama is disabled, still some odd behavior in there
Diffstat (limited to '')
-rw-r--r--config.mk4
-rw-r--r--dwm.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index f5ec4c1..bd6ff8e 100644
--- a/config.mk
+++ b/config.mk
@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
11X11LIB = /usr/X11R6/lib 11X11LIB = /usr/X11R6/lib
12 12
13# Xinerama, un-comment if you want it 13# Xinerama, un-comment if you want it
14XINERAMALIBS = -L${X11LIB} -lXinerama 14#XINERAMALIBS = -L${X11LIB} -lXinerama
15XINERAMAFLAGS = -DXINERAMA 15#XINERAMAFLAGS = -DXINERAMA
16 16
17# includes and libs 17# includes and libs
18INCS = -I. -I/usr/include -I${X11INC} 18INCS = -I. -I/usr/include -I${X11INC}
diff --git a/dwm.c b/dwm.c
index 5c27113..61ac193 100644
--- a/dwm.c
+++ b/dwm.c
@@ -179,7 +179,6 @@ static long getstate(Window w);
179static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size); 179static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
180static void grabbuttons(Client *c, Bool focused); 180static void grabbuttons(Client *c, Bool focused);
181static void grabkeys(void); 181static void grabkeys(void);
182static Monitor *idxtomon(unsigned int n);
183static void initfont(const char *fontstr); 182static void initfont(const char *fontstr);
184static Bool isprotodel(Client *c); 183static Bool isprotodel(Client *c);
185static void keypress(XEvent *e); 184static void keypress(XEvent *e);
@@ -233,6 +232,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee);
233static void zoom(const Arg *arg); 232static void zoom(const Arg *arg);
234#ifdef XINERAMA 233#ifdef XINERAMA
235static void focusmon(const Arg *arg); 234static void focusmon(const Arg *arg);
235static Monitor *idxtomon(unsigned int n);
236static void tagmon(const Arg *arg); 236static void tagmon(const Arg *arg);
237#endif /* XINERAMA */ 237#endif /* XINERAMA */
238 238
@@ -943,6 +943,7 @@ grabkeys(void) {
943 } 943 }
944} 944}
945 945
946#ifdef XINERAMA
946Monitor * 947Monitor *
947idxtomon(unsigned int n) { 948idxtomon(unsigned int n) {
948 unsigned int i; 949 unsigned int i;
@@ -951,6 +952,7 @@ idxtomon(unsigned int n) {
951 for(m = mons, i = 0; m && i != n; m = m->next, i++); 952 for(m = mons, i = 0; m && i != n; m = m->next, i++);
952 return m; 953 return m;
953} 954}
955#endif /* XINERAMA */
954 956
955void 957void
956initfont(const char *fontstr) { 958initfont(const char *fontstr) {