summaryrefslogtreecommitdiff
path: root/src/ui/window.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-17 16:00:18 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-17 16:00:18 +0200
commit233d1012a762c6b49632b82bd9618003e25fefc5 (patch)
tree9f9d6de9fc88c9a5013fec146f8dc6bd625eea5a /src/ui/window.c
parent95366fc1fc01958e2b3c9557b1afa77785ca3b04 (diff)
Window: Added notifications for window focus gain/loss
Diffstat (limited to 'src/ui/window.c')
-rw-r--r--src/ui/window.c4
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;