1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

fixed issue with window being moved by 1 pixel up and left when the window

move was initiated by the client
This commit is contained in:
dan
2005-03-13 00:15:13 +00:00
parent 24519b6292
commit 2f56373cc2
3 changed files with 14 additions and 7 deletions

View File

@@ -239,19 +239,23 @@ wClientConfigure(WWindow *wwin, XConfigureRequestEvent *xcre)
/* If the window is shaded, wrong height will be set for the window */
if (xcre->value_mask & CWX) {
nx = xcre->x;
if (HAS_BORDER(wwin))
/* Subtracting the border makes the window shift by 1 pixel -Dan */
/*if (HAS_BORDER(wwin)) {
nx -= FRAME_BORDER_WIDTH;
}
else
}*/
} else {
nx = wwin->frame_x;
}
if (xcre->value_mask & CWY) {
ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width);
if (HAS_BORDER(wwin))
/* Subtracting the border makes the window shift by 1 pixel -Dan */
/*if (HAS_BORDER(wwin)) {
ny -= FRAME_BORDER_WIDTH;
}
else
}*/
} else {
ny = wwin->frame_y;
}
if (xcre->value_mask & CWWidth)
nwidth = xcre->width;