From db594a9b89e8f6f7a2730a879412e3145610da16 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 7 Mar 2000 20:03:05 +0000 Subject: [PATCH] Fix bug in coordinates reported after a window configure --- src/client.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/client.c b/src/client.c index c770d7a7..b89d0062 100644 --- a/src/client.c +++ b/src/client.c @@ -234,14 +234,19 @@ wClientConfigure(WWindow *wwin, XConfigureRequestEvent *xcre) if (!wwin->flags.shaded) { /* If the window is shaded, wrong height will be set for the window */ - if (xcre->value_mask & CWX) - nx = xcre->x - FRAME_BORDER_WIDTH; + if (xcre->value_mask & CWX) { + nx = xcre->x; + if (!WFLAGP(wwin, no_border)) + nx -= FRAME_BORDER_WIDTH; + } else nx = wwin->frame_x; - if (xcre->value_mask & CWY) - ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width) - - FRAME_BORDER_WIDTH; + if (xcre->value_mask & CWY) { + ny = xcre->y - ((ofs_y < 0) ? 0 : wwin->frame->top_width); + if (!WFLAGP(wwin, no_border)) + ny -= FRAME_BORDER_WIDTH; + } else ny = wwin->frame_y;