[hackers] [dwm] declare buf only if XINERAMA support is used || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Tue, 23 Jun 2009 19:48:35 +0000 (UTC)

changeset: 1406:b561ed2a0fc1
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Tue Jun 23 16:29:32 2009 +0100
files: config.mk dwm.c
description:
declare buf only if XINERAMA support is used

diff -r f28d889cef66 -r b561ed2a0fc1 config.mk
--- a/config.mk Tue Jun 23 16:28:37 2009 +0100
+++ b/config.mk Tue Jun 23 16:29:32 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 f28d889cef66 -r b561ed2a0fc1 dwm.c
--- a/dwm.c Tue Jun 23 16:28:37 2009 +0100
+++ b/dwm.c Tue Jun 23 16:29:32 2009 +0100
@@ -599,7 +599,6 @@
 
 void
 drawbar(Monitor *m) {
- char buf[2];
         int x;
         unsigned int i, occ = 0, urg = 0;
         unsigned long *col;
@@ -616,6 +615,7 @@
         dc.x = 0;
 #ifdef XINERAMA
         {
+ char buf[2];
                 buf[0] = m->screen_number + '0';
                 buf[1] = '\0';
                 dc.w = TEXTW(buf);
Received on Tue Jun 23 2009 - 19:48:35 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 23 2009 - 20:00:07 UTC