Browse Source

dtwm: fix a title bar resizing issue.

hyousatsu 1 year ago
parent
commit
bba694f5f2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      cde/programs/dtwm/WmCDecor.c

+ 3 - 2
cde/programs/dtwm/WmCDecor.c

@@ -2361,9 +2361,10 @@ void RegenerateClientFrame (ClientData *pcd)
     }
 
     /* resize title bar window */
-    if (decor & MWM_DECOR_TITLE && !pcd->clientTitleWin)
+    if (decor & MWM_DECOR_TITLE)
     {
-	CreateTitleBarWindow (pcd);
+	if (!pcd->clientTitleWin) CreateTitleBarWindow (pcd);
+
 	XResizeWindow (DISPLAY, pcd->clientTitleWin,
 	   pcd->frameInfo.width - 2*pcd->frameInfo.upperBorderWidth,
 	   pcd->frameInfo.titleBarHeight);