projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38e9b67
)
declare buf only if XINERAMA support is used
author
Anselm R Garbe
<anselm@garbe.us>
Tue, 23 Jun 2009 15:29:32 +0000
(16:29 +0100)
committer
Anselm R Garbe
<anselm@garbe.us>
Tue, 23 Jun 2009 15:29:32 +0000
(16:29 +0100)
config.mk
patch
|
blob
|
history
dwm.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index f5ec4c17a7274341b59ce820d577665002f631fe..bd6ff8e7a7a0a3dce9759d37873c4748b86602e4 100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-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
index e0a6286251107fc03e005d7a781a81843dba1131..896c8a7a397766bbed343d658c691d91781f0398 100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-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;
@@
-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);