From 3a48a0eb30285b5ae2362306e0cabf73e6e9ea5a Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 13 May 2026 18:28:45 +0200 Subject: [PATCH] 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. --- src/framewin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/framewin.c b/src/framewin.c index f28d22a..5425529 100644 --- a/src/framewin.c +++ b/src/framewin.c @@ -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); } }