From: Anselm R Garbe Date: Fri, 13 Jun 2008 11:04:04 +0000 (+0100) Subject: using xidx X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=fcf26a38f1ad291cd794daa52e44af252b728b6a;p=dmenu.git using xidx --- diff --git a/dmenu.c b/dmenu.c index 0f728c2..a37471a 100644 --- a/dmenu.c +++ b/dmenu.c @@ -634,9 +634,9 @@ setup(Bool topbar) { #if XINERAMA if(XineramaIsActive(dpy)) { info = XineramaQueryScreens(dpy, &i); - x = info[0].x_org; - y = topbar ? info[0].y_org : info[0].y_org + info[0].height - mh; - mw = info[0].width; + x = info[xidx].x_org; + y = topbar ? info[xidx].y_org : info[xidx].y_org + info[xidx].height - mh; + mw = info[xidx].width; XFree(info); } else