using xidx

This commit is contained in:
Anselm R Garbe 2008-06-13 12:04:04 +01:00
parent 4fc6cbe608
commit fcf26a38f1
1 changed files with 3 additions and 3 deletions

View File

@ -634,9 +634,9 @@ setup(Bool topbar) {
#if XINERAMA #if XINERAMA
if(XineramaIsActive(dpy)) { if(XineramaIsActive(dpy)) {
info = XineramaQueryScreens(dpy, &i); info = XineramaQueryScreens(dpy, &i);
x = info[0].x_org; x = info[xidx].x_org;
y = topbar ? info[0].y_org : info[0].y_org + info[0].height - mh; y = topbar ? info[xidx].y_org : info[xidx].y_org + info[xidx].height - mh;
mw = info[0].width; mw = info[xidx].width;
XFree(info); XFree(info);
} }
else else