summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-18 13:21:42 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-18 13:21:42 +0300
commit7d7110c1dfe376334317983b4c2734ddb474ac8c (patch)
treed198c6bc21922639676c9284c3f9fe309f6d54ea /src/ui/window.c
parent95941a8fca886ba258716c535d51d0d68d075993 (diff)
Fixed crash when hovered widget is destroyed
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 0dd248e6..5ac4f95e 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1042,11 +1042,11 @@ void draw_Window(iWindow *d) {
1042 when the custom frame is being used. */ { 1042 when the custom frame is being used. */ {
1043 setCurrent_Root(d->roots[0]); 1043 setCurrent_Root(d->roots[0]);
1044#if defined (iPlatformMobile) 1044#if defined (iPlatformMobile)
1045 iColor back = get_Color(uiBackground_ColorId); 1045 iColor back = get_Color(uiBackground_ColorId);
1046 if (deviceType_App() == phone_AppDeviceType) { 1046 if (deviceType_App() == phone_AppDeviceType) {
1047 /* Page background extends to safe area, so fill it completely. */ 1047 /* Page background extends to safe area, so fill it completely. */
1048 back = get_Color(tmBackground_ColorId); 1048 back = get_Color(tmBackground_ColorId);
1049 } 1049 }
1050#else 1050#else
1051 const iColor back = get_Color(gotFocus && d->place.snap != maximized_WindowSnap && 1051 const iColor back = get_Color(gotFocus && d->place.snap != maximized_WindowSnap &&
1052 ~winFlags & SDL_WINDOW_FULLSCREEN_DESKTOP 1052 ~winFlags & SDL_WINDOW_FULLSCREEN_DESKTOP