[1mdiff --git a/src/ui/root.c b/src/ui/root.c[m
[1mindex 21bed366..b00fab28 100644[m
[1m--- a/src/ui/root.c[m
[1m+++ b/src/ui/root.c[m
[36m@@ -278,6 +278,7 @@[m [mvoid destroyPending_Root(iRoot *d) {[m
}[m
if (widget->flags & keepOnTop_WidgetFlag) {[m
removeOne_PtrArray(d->onTop, widget);[m
[32m+[m[32m widget->flags &= ~keepOnTop_WidgetFlag;[m
}[m
iAssert(indexOf_PtrArray(d->onTop, widget) == iInvalidPos);[m
if (widget->parent) {[m
[36m@@ -287,6 +288,13 @@[m [mvoid destroyPending_Root(iRoot *d) {[m
iRelease(widget);[m
remove_PtrSetIterator(&i);[m
}[m
[32m+[m[32m#if 0[m
[32m+[m[32m printf("Root %p onTop (%zu):\n", d, size_PtrArray(d->onTop));[m
[32m+[m[32m iConstForEach(PtrArray, t, d->onTop) {[m
[32m+[m[32m const iWidget *p = *t.value;[m
[32m+[m[32m printf(" - %p {%s}\n", p, cstr_String(id_Widget(p)));[m
[32m+[m[32m }[m
[32m+[m[32m#endif[m
setCurrent_Root(oldRoot);[m
}[m
[m
[1mdiff --git a/src/ui/widget.c b/src/ui/widget.c[m
[1mindex 184ce2a3..95a39470 100644[m
[1m--- a/src/ui/widget.c[m
[1m+++ b/src/ui/widget.c[m
[36m@@ -156,6 +156,13 @@[m [mvoid deinit_Widget(iWidget *d) {[m
if (d->flags & visualOffset_WidgetFlag) {[m
removeTicker_App(visualOffsetAnimation_Widget_, d);[m
}[m
[32m+[m[32m iWindow *win = get_Window();[m
[32m+[m[32m if (win->lastHover == d) {[m
[32m+[m[32m win->lastHover = NULL;[m
[32m+[m[32m }[m
[32m+[m[32m if (win->hover == d) {[m
[32m+[m[32m win->hover = NULL;[m
[32m+[m[32m }[m
widgetDestroyed_Touch(d);[m
}[m
[m
[1mdiff --git a/src/ui/window.c b/src/ui/window.c[m
[1mindex 0dd248e6..5ac4f95e 100644[m
[1m--- a/src/ui/window.c[m
[1m+++ b/src/ui/window.c[m
[36m@@ -1042,11 +1042,11 @@[m [mvoid draw_Window(iWindow *d) {[m
when the custom frame is being used. */ {[m
setCurrent_Root(d->roots[0]);[m
#if defined (iPlatformMobile)[m
[31m- iColor back = get_Color(uiBackground_ColorId);[m
[31m- if (deviceType_App() == phone_AppDeviceType) {[m
[31m- /* Page background extends to safe area, so fill it completely. */[m
[31m- back = get_Color(tmBackground_ColorId);[m
[31m- }[m
[32m+[m[32m iColor back = get_Color(uiBackground_ColorId);[m
[32m+[m[32m if (deviceType_App() == phone_AppDeviceType) {[m
[32m+[m[32m /* Page background extends to safe area, so fill it completely. */[m
[32m+[m[32m back = get_Color(tmBackground_ColorId);[m
[32m+[m[32m }[m
#else[m
const iColor back = get_Color(gotFocus && d->place.snap != maximized_WindowSnap &&[m
~winFlags & SDL_WINDOW_FULLSCREEN_DESKTOP[m
text/plain
This content has been proxied by September (ba2dc).