workaround to don't process keyboard input when window just obtained focus
@@ -886,6 +886,7 @@ void tic_sys_poll()
#endif
SDL_Event event;
+ bool focusGained = false;
// Workaround for freeze on fullscreen under macOS #819
SDL_PumpEvents();
@@ -943,6 +944,7 @@ void tic_sys_poll()
}
break;
case SDL_WINDOWEVENT_FOCUS_GAINED:
+ focusGained = true;
platform.studio->updateProject();
break;
}
@@ -971,6 +973,10 @@ void tic_sys_poll()
}
}
+ // workaround for #1332, don't process keyboard input when window just obtained focus
+ if(focusGained)
+ return;
+
processMouse();
#if defined(TOUCH_INPUT_SUPPORT)
