diff options
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 63f19e3f..4418e61f 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -680,6 +680,10 @@ static iBool handleWindowEvent_Window_(iWindow *d, const SDL_WindowEvent *ev) { | |||
680 | return iTrue; | 680 | return iTrue; |
681 | case SDL_WINDOWEVENT_FOCUS_GAINED: | 681 | case SDL_WINDOWEVENT_FOCUS_GAINED: |
682 | d->focusGainedAt = SDL_GetTicks(); | 682 | d->focusGainedAt = SDL_GetTicks(); |
683 | postCommand_App("window.focus.gained"); | ||
684 | return iFalse; | ||
685 | case SDL_WINDOWEVENT_FOCUS_LOST: | ||
686 | postCommand_App("window.focus.lost"); | ||
683 | return iFalse; | 687 | return iFalse; |
684 | default: | 688 | default: |
685 | break; | 689 | break; |