From 50ea1705c77de1f0c3f43efdb662d2cc4e41c717 Mon Sep 17 00:00:00 2001 From: Liang Chang Date: Fri, 6 Aug 2021 08:36:05 +0800 Subject: [PATCH] dtwm: Relocate base window when regenerate its frame. --- cde/programs/dtwm/WmCDecor.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cde/programs/dtwm/WmCDecor.c b/cde/programs/dtwm/WmCDecor.c index aa296c775..c8d6f3a79 100644 --- a/cde/programs/dtwm/WmCDecor.c +++ b/cde/programs/dtwm/WmCDecor.c @@ -2280,9 +2280,10 @@ void RegenerateClientFrame (ClientData *pcd) } /* resize base window */ - XResizeWindow (DISPLAY, pcd->clientBaseWin, BaseWindowWidth (pcd), - BaseWindowHeight (pcd)); - + XMoveResizeWindow (DISPLAY, pcd->clientBaseWin, + BaseWindowX (pcd), BaseWindowY (pcd), + BaseWindowWidth (pcd), BaseWindowHeight (pcd)); + /* resize the stretcher windows */ if (SHOW_RESIZE_CURSORS(pcd) && (decor & MWM_DECOR_RESIZEH)) { XMoveResizeWindow (DISPLAY,