1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtwm: fix a title bar resizing issue.

This commit is contained in:
hyousatsu 2022-07-12 11:50:07 +00:00 committed by Jon Trulson
parent d500c61527
commit bba694f5f2

View file

@ -2361,9 +2361,10 @@ void RegenerateClientFrame (ClientData *pcd)
} }
/* resize title bar window */ /* 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, XResizeWindow (DISPLAY, pcd->clientTitleWin,
pcd->frameInfo.width - 2*pcd->frameInfo.upperBorderWidth, pcd->frameInfo.width - 2*pcd->frameInfo.upperBorderWidth,
pcd->frameInfo.titleBarHeight); pcd->frameInfo.titleBarHeight);