fix overlays for multi monitor
@@ -427,11 +427,11 @@ showoverlay() {
if (c->islocked) {
switch (selmon->overlaymode) {
case 0:
- resize(c, selmon->mx + 20, (selmon->showbar ? bh : 0) - c->h,
+ resize(c, selmon->mx + 20, selmon->my + (selmon->showbar ? bh : 0) - c->h,
selmon->ww - 40, c->h, True);
break;
case 1:
- resize(c, selmon->mx + selmon->mw - 20, 40, c->w, selmon->mh - 80,
+ resize(c, selmon->mx + selmon->mw - 20, selmon->my + 40, c->w, selmon->mh - 80,
True);
break;
case 2:
@@ -439,7 +439,7 @@ showoverlay() {
selmon->ww - 40, c->h, True);
break;
case 3:
- resize(c, selmon->mx - c->w + 20, 40, c->w, selmon->mh - 80,
+ resize(c, selmon->mx - c->w + 20, selmon->my + 40, c->w, selmon->mh - 80,
True);
break;
default:
@@ -460,16 +460,16 @@ showoverlay() {
XRaiseWindow(dpy, c->win);
switch (selmon->overlaymode) {
case 0:
- animateclient(c, c->x, ( selmon->showbar ? bh : 0 ), 0, 0, 15, 0);
+ animateclient(c, c->x, selmon->my + ( selmon->showbar ? bh : 0 ), 0, 0, 15, 0);
break;
case 1:
- animateclient(c, selmon->mx + selmon->mw - c->w, 40, 0, 0, 15, 0);
+ animateclient(c, selmon->mx + selmon->mw - c->w, selmon->my + 40, 0, 0, 15, 0);
break;
case 2:
animateclient(c, selmon->mx + 20, selmon->my + selmon->mh - c->h, 0, 0, 15, 0);
break;
case 3:
- animateclient(c, selmon->mx, 40, 0, 0, 15, 0);
+ animateclient(c, selmon->mx, selmon->my + 40, 0, 0, 15, 0);
break;
default:
selmon->overlaymode = 0;
