summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-26 17:24:48 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-26 17:24:48 +0300
commit4d4829ea8bc7e5819a3577bae1b87e545db85330 (patch)
treefc30f9bf7c0bb7206cf3d1a13740ce083e3596ce /src/app.c
parent7b591b420f74faa32a38dea46f7c5d87c070eb4d (diff)
macOS: Popup window fixes; simply window creation
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 5385491c..7aa0153e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -3036,7 +3036,11 @@ iMainWindow *mainWindow_App(void) {
3036 3036
3037void closePopups_App(void) { 3037void closePopups_App(void) {
3038 iApp *d = &app_; 3038 iApp *d = &app_;
3039 const uint32_t now = SDL_GetTicks();
3039 iConstForEach(PtrArray, i, &d->popupWindows) { 3040 iConstForEach(PtrArray, i, &d->popupWindows) {
3040 postCommand_Root(((const iWindow *) i.ptr)->roots[0], "cancel"); 3041 const iWindow *win = i.ptr;
3042 if (now - win->focusGainedAt > 200) {
3043 postCommand_Root(((const iWindow *) i.ptr)->roots[0], "cancel");
3044 }
3041 } 3045 }
3042} 3046}