diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-26 17:24:48 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-09-26 17:24:48 +0300 |
commit | 4d4829ea8bc7e5819a3577bae1b87e545db85330 (patch) | |
tree | fc30f9bf7c0bb7206cf3d1a13740ce083e3596ce /src/app.c | |
parent | 7b591b420f74faa32a38dea46f7c5d87c070eb4d (diff) |
macOS: Popup window fixes; simply window creation
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3036,7 +3036,11 @@ iMainWindow *mainWindow_App(void) { | |||
3036 | 3036 | ||
3037 | void closePopups_App(void) { | 3037 | void 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 | } |