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:
parent
147b9d0694
commit
3a48a0eb30
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue