From c1222d65e26bc33f95a538b17da03ff759d1dd7e Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Thu, 20 Mar 2025 17:52:24 +0100 Subject: [PATCH] Update SBS on WPS exit only when both use extra framebuffer Change-Id: I853add515231f319cc76f16f322ceb23bc920d72 --- apps/gui/wps.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index d39a3b60b5..c552709f24 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -545,8 +545,13 @@ static void gwps_leave_wps(bool theme_enabled) { #ifdef HAVE_BACKDROP_IMAGE skin_backdrop_show(sb_get_backdrop(i)); + + /* The following is supposed to erase any traces of %VB + viewports drawn by the WPS. May need further thought... */ + struct wps_data *sbs = skin_get_gwps(CUSTOM_STATUSBAR, i)->data; + if (gwps->data->use_extra_framebuffer && sbs->use_extra_framebuffer) + skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); #endif - skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); viewportmanager_theme_undo(i, skin_has_sbs(gwps)); } }