From: Michael D. Lowis Date: Tue, 11 Dec 2018 15:26:53 +0000 (-0500) Subject: fixed bug in centering logic. X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=663d78714700f7d49d7559299453ffae14c21e77;p=projs%2Ftide.git fixed bug in centering logic. --- diff --git a/inc/x11.h b/inc/x11.h index bb4cb65..80793bc 100644 --- a/inc/x11.h +++ b/inc/x11.h @@ -84,8 +84,8 @@ static void x11_centerwin(XConf* x) { maxy = p_screens[i].y_org + p_screens[i].height; if (minx <= ptrx && ptrx <= maxx && miny <= ptry && ptry <= maxy) { XMoveWindow(x->display, x->self, - p_screens[i].width/2 - x->width/2, - p_screens[i].height/2 - x->height/2); + minx + p_screens[i].width/2 - x->width/2, + miny + p_screens[i].height/2 - x->height/2); break; } }