aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 3c261c0..a246111 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -541,7 +541,7 @@ run(void)
541static void 541static void
542setup(void) 542setup(void)
543{ 543{
544 int x, y, i, j = 0; 544 int x, y, i, j;
545 unsigned int du; 545 unsigned int du;
546 XSetWindowAttributes swa; 546 XSetWindowAttributes swa;
547 XIM xim; 547 XIM xim;
@@ -565,6 +565,7 @@ setup(void)
565 lines = MAX(lines, 0); 565 lines = MAX(lines, 0);
566 mh = (lines + 1) * bh; 566 mh = (lines + 1) * bh;
567#ifdef XINERAMA 567#ifdef XINERAMA
568 i = 0;
568 if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { 569 if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) {
569 XGetInputFocus(dpy, &w, &di); 570 XGetInputFocus(dpy, &w, &di);
570 if (mon >= 0 && mon < n) 571 if (mon >= 0 && mon < n)