mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Fix bug in coordinates reported after a window configure
This commit is contained in:
15
src/client.c
15
src/client.c
@@ -234,14 +234,19 @@ wClientConfigure(WWindow *wwin, XConfigureRequestEvent *xcre)
|
|||||||
|
|
||||||
if (!wwin->flags.shaded) {
|
if (!wwin->flags.shaded) {
|
||||||
/* If the window is shaded, wrong height will be set for the window */
|
/* If the window is shaded, wrong height will be set for the window */
|
||||||
if (xcre->value_mask & CWX)
|
if (xcre->value_mask & CWX) {
|
||||||
nx = xcre->x - FRAME_BORDER_WIDTH;
|
nx = xcre->x;
|
||||||
|
if (!WFLAGP(wwin, no_border))
|
||||||
|
nx -= FRAME_BORDER_WIDTH;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
nx = wwin->frame_x;
|
nx = wwin->frame_x;
|
||||||
|
|
||||||
if (xcre->value_mask & CWY)
|
if (xcre->value_mask & CWY) {
|
||||||
ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width)
|
ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width);
|
||||||
- FRAME_BORDER_WIDTH;
|
if (!WFLAGP(wwin, no_border))
|
||||||
|
ny -= FRAME_BORDER_WIDTH;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ny = wwin->frame_y;
|
ny = wwin->frame_y;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user