From 9685ae081542c6702fec441984cc3e74a103d93e Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 8 Mar 2000 13:26:13 +0000 Subject: [PATCH] Corrected code reporting retults of window configure/move so that the border of the frame window is allowed for and the absolute scrren coordinates of the child appear in the configure notify. --- src/window.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/window.c b/src/window.c index 5a9b9c96..897db23b 100644 --- a/src/window.c +++ b/src/window.c @@ -2004,6 +2004,10 @@ int req_width, req_height; /* new size of the client */ } wwin->frame_x = req_x; wwin->frame_y = req_y; + if (!WFLAGP(wwin, no_border)) { + wwin->client.x += FRAME_BORDER_WIDTH; + wwin->client.y += FRAME_BORDER_WIDTH; + } #ifdef SHAPE if (wShapeSupported && wwin->flags.shaped && resize) { @@ -2040,6 +2044,10 @@ int req_x, req_y; /* new position of the frame */ wwin->client.x = req_x; wwin->client.y = req_y + wwin->frame->top_width; + if (!WFLAGP(wwin, no_border)) { + wwin->client.x += FRAME_BORDER_WIDTH; + wwin->client.y += FRAME_BORDER_WIDTH; + } XMoveWindow(dpy, wwin->frame->core->window, req_x, req_y);