Fix close button: always call frame_paint after show/hide button

wFrameWindowShowButton was only calling updateTitlebar (not frame_paint)
when new_style==TS_NEW. Now always calls frame_paint so the close button
icon is rendered into the frame buffer after pinning a menu.
This commit is contained in:
Levi Neely 2026-05-13 18:28:45 +02:00
parent 147b9d0694
commit 3a48a0eb30
1 changed files with 1 additions and 3 deletions

View File

@ -610,10 +610,8 @@ void wFrameWindowShowButton(WFrameWindow * fwin, int flags)
if (fwin->titlebar) {
if (wPreferences.new_style == TS_NEW) {
updateTitlebar(fwin);
} else {
if (fwin->titlebar->window) wm_backend->window_clear((WNativeWindow)fwin->titlebar->window);
wm_backend->frame_paint(fwin);
}
wm_backend->frame_paint(fwin);
checkTitleSize(fwin);
}
}