diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 3f8faaea..8197afd4 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -913,7 +913,7 @@ iBool processEvent_Window(iWindow *d, const SDL_Event *ev) { | |||
913 | } | 913 | } |
914 | default: { | 914 | default: { |
915 | SDL_Event event = *ev; | 915 | SDL_Event event = *ev; |
916 | if (event.type == SDL_USEREVENT && isCommand_UserEvent(ev, "window.unfreeze")) { | 916 | if (event.type == SDL_USEREVENT && isCommand_UserEvent(ev, "window.unfreeze") && mw) { |
917 | mw->isDrawFrozen = iFalse; | 917 | mw->isDrawFrozen = iFalse; |
918 | if (SDL_GetWindowFlags(d->win) & SDL_WINDOW_HIDDEN) { | 918 | if (SDL_GetWindowFlags(d->win) & SDL_WINDOW_HIDDEN) { |
919 | SDL_ShowWindow(d->win); | 919 | SDL_ShowWindow(d->win); |