removed compiler warning if XINERAMA is disabled
This commit is contained in:
parent
333dfdd1e1
commit
d63e517ddb
|
@ -586,7 +586,7 @@ run(void) {
|
||||||
|
|
||||||
void
|
void
|
||||||
setup(Bool topbar) {
|
setup(Bool topbar) {
|
||||||
int i, j, n, x, y;
|
int i, j, x, y;
|
||||||
XModifierKeymap *modmap;
|
XModifierKeymap *modmap;
|
||||||
XSetWindowAttributes wa;
|
XSetWindowAttributes wa;
|
||||||
#if XINERAMA
|
#if XINERAMA
|
||||||
|
@ -619,6 +619,7 @@ setup(Bool topbar) {
|
||||||
mh = dc.font.height + 2;
|
mh = dc.font.height + 2;
|
||||||
#if XINERAMA
|
#if XINERAMA
|
||||||
if(XineramaIsActive(dpy)) {
|
if(XineramaIsActive(dpy)) {
|
||||||
|
int n;
|
||||||
i = 0;
|
i = 0;
|
||||||
info = XineramaQueryScreens(dpy, &n);
|
info = XineramaQueryScreens(dpy, &n);
|
||||||
if(n > 1) {
|
if(n > 1) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user