From 3d470167882799fc38699ec22f5198450cfe5df0 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Tue, 18 Dec 2012 18:29:50 +0000 Subject: [PATCH] Revert "Maximized windows appear misplaced" This reverts commit b657f15344f193d70747689f96cefddc8baa2181. --- src/window.c | 23 ----------------------- 1 file changed, 23 deletions(-) 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 -- 2.11.4.GIT