Introduction
Introduction Statistics Contact Development Disclaimer Help
tdeclare buf only if XINERAMA support is used - dwm - [fork] customized build o…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 0d8671a5ad040000541ebaa893582e520c7e33a3
parent 38e9b67026003fdce065ec220d2195232c881538
Author: Anselm R Garbe <[email protected]>
Date: Tue, 23 Jun 2009 16:29:32 +0100
declare buf only if XINERAMA support is used
Diffstat:
M config.mk | 4 ++--
M dwm.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/config.mk b/config.mk
t@@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
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 --git a/dwm.c b/dwm.c
t@@ -599,7 +599,6 @@ die(const char *errstr, ...) {
void
drawbar(Monitor *m) {
- char buf[2];
int x;
unsigned int i, occ = 0, urg = 0;
unsigned long *col;
t@@ -616,6 +615,7 @@ drawbar(Monitor *m) {
dc.x = 0;
#ifdef XINERAMA
{
+ char buf[2];
buf[0] = m->screen_number + '0';
buf[1] = '\0';
dc.w = TEXTW(buf);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.