From: Carlos R. Mafra Date: Tue, 18 Dec 2012 18:29:50 +0000 (+0000) Subject: Revert "Maximized windows appear misplaced" X-Git-Tag: wmaker-0.95.4~4 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/3d470167882799fc38699ec22f5198450cfe5df0 Revert "Maximized windows appear misplaced" This reverts commit b657f15344f193d70747689f96cefddc8baa2181. --- diff --git a/src/window.c b/src/window.c index 4051035d..47d280c3 100644 --- a/src/window.c +++ b/src/window.c @@ -1140,29 +1140,6 @@ WWindow *wManageWindow(WScreen *scr, Window window) y -= wwin->frame->top_width + wwin->frame->bottom_width; } - /* wWindowConfigure() will account for the window border - * when placing so the window would be shifted without - * the adjustment below - */ - if (HAS_BORDER(wwin)) { - WMRect rect; - WArea usableArea; - int head; - - rect.pos.x = x; - rect.pos.y = y; - rect.size.width = 1; - rect.size.height = 1; - - head = wGetHeadForRect(scr, rect); - usableArea = wGetUsableAreaForHead(scr, head, NULL, True); - - if (x >= usableArea.x1 + 2 * FRAME_BORDER_WIDTH) - x -= 2 * FRAME_BORDER_WIDTH; - if (y >= usableArea.y1 + 2 * FRAME_BORDER_WIDTH) - y -= 2 * FRAME_BORDER_WIDTH; - } - /* * wWindowConfigure() will init the client window's size * (wwin->client.{width,height}) and all other geometry