[hackers] [dwm] some minor fix if xinerama is disabled, still some odd behavior in there || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Wed, 1 Jul 2009 16:08:16 +0000 (UTC)

changeset: 1436:2a288c62abe5
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Wed Jul 01 17:08:10 2009 +0100
files: config.mk dwm.c
description:
some minor fix if xinerama is disabled, still some odd behavior in there

diff -r 5af9165892ca -r 2a288c62abe5 config.mk
--- a/config.mk Tue Jun 30 20:20:33 2009 +0100
+++ b/config.mk Wed Jul 01 17:08:10 2009 +0100
@@ -11,8 +11,8 @@
 X11LIB = /usr/X11R6/lib
 
 # Xinerama, un-comment if you want it
-XINERAMALIBS = -L${X11LIB} -lXinerama
-XINERAMAFLAGS = -DXINERAMA
+#XINERAMALIBS = -L${X11LIB} -lXinerama
+#XINERAMAFLAGS = -DXINERAMA
 
 # includes and libs
 INCS = -I. -I/usr/include -I${X11INC}
diff -r 5af9165892ca -r 2a288c62abe5 dwm.c
--- a/dwm.c Tue Jun 30 20:20:33 2009 +0100
+++ b/dwm.c Wed Jul 01 17:08:10 2009 +0100
@@ -179,7 +179,6 @@
 static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
 static void grabbuttons(Client *c, Bool focused);
 static void grabkeys(void);
-static Monitor *idxtomon(unsigned int n);
 static void initfont(const char *fontstr);
 static Bool isprotodel(Client *c);
 static void keypress(XEvent *e);
@@ -233,6 +232,7 @@
 static void zoom(const Arg *arg);
 #ifdef XINERAMA
 static void focusmon(const Arg *arg);
+static Monitor *idxtomon(unsigned int n);
 static void tagmon(const Arg *arg);
 #endif /* XINERAMA */
 
@@ -943,6 +943,7 @@
         }
 }
 
+#ifdef XINERAMA
 Monitor *
 idxtomon(unsigned int n) {
         unsigned int i;
@@ -951,6 +952,7 @@
         for(m = mons, i = 0; m && i != n; m = m->next, i++);
         return m;
 }
+#endif /* XINERAMA */
 
 void
 initfont(const char *fontstr) {
Received on Wed Jul 01 2009 - 16:08:16 UTC

This archive was generated by hypermail 2.2.0 : Wed Jul 01 2009 - 16:12:08 UTC