declare buf only if XINERAMA support is used
parent
38e9b67026
commit
0d8671a5ad
|
@ -11,8 +11,8 @@ X11INC = /usr/X11R6/include
|
||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
# Xinerama, un-comment if you want it
|
# Xinerama, un-comment if you want it
|
||||||
XINERAMALIBS = -L${X11LIB} -lXinerama
|
#XINERAMALIBS = -L${X11LIB} -lXinerama
|
||||||
XINERAMAFLAGS = -DXINERAMA
|
#XINERAMAFLAGS = -DXINERAMA
|
||||||
|
|
||||||
# includes and libs
|
# includes and libs
|
||||||
INCS = -I. -I/usr/include -I${X11INC}
|
INCS = -I. -I/usr/include -I${X11INC}
|
||||||
|
|
2
dwm.c
2
dwm.c
|
@ -599,7 +599,6 @@ die(const char *errstr, ...) {
|
||||||
|
|
||||||
void
|
void
|
||||||
drawbar(Monitor *m) {
|
drawbar(Monitor *m) {
|
||||||
char buf[2];
|
|
||||||
int x;
|
int x;
|
||||||
unsigned int i, occ = 0, urg = 0;
|
unsigned int i, occ = 0, urg = 0;
|
||||||
unsigned long *col;
|
unsigned long *col;
|
||||||
|
@ -616,6 +615,7 @@ drawbar(Monitor *m) {
|
||||||
dc.x = 0;
|
dc.x = 0;
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
{
|
{
|
||||||
|
char buf[2];
|
||||||
buf[0] = m->screen_number + '0';
|
buf[0] = m->screen_number + '0';
|
||||||
buf[1] = '\0';
|
buf[1] = '\0';
|
||||||
dc.w = TEXTW(buf);
|
dc.w = TEXTW(buf);
|
||||||
|
|
Loading…
Reference in New Issue