mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Revert "Maximized windows appear misplaced"
This reverts commit b657f15344.
This commit is contained in:
23
src/window.c
23
src/window.c
@@ -1140,29 +1140,6 @@ WWindow *wManageWindow(WScreen *scr, Window window)
|
|||||||
y -= wwin->frame->top_width + wwin->frame->bottom_width;
|
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
|
* wWindowConfigure() will init the client window's size
|
||||||
* (wwin->client.{width,height}) and all other geometry
|
* (wwin->client.{width,height}) and all other geometry
|
||||||
|
|||||||
Reference in New Issue
Block a user