diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index d7c101452..5e80fe137 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -212,6 +212,7 @@ namespace hex { bool frameRateUnlocked = ImGui::IsPopupOpen(ImGuiID(0), ImGuiPopupFlags_AnyPopupId) || TaskManager::getRunningTaskCount() > 0 || this->m_mouseButtonDown || this->m_hadEvent || !this->m_pressedKeys.empty(); const double timeout = std::max(0.0, (1.0 / 5.0) - (glfwGetTime() - this->m_lastFrameTime)); + this->m_hadEvent = false; if ((this->m_lastFrameTime - this->m_frameRateUnlockTime) > 5 && this->m_frameRateTemporarilyUnlocked && !frameRateUnlocked) { this->m_frameRateTemporarilyUnlocked = false; @@ -239,8 +240,6 @@ namespace hex { } this->m_lastFrameTime = glfwGetTime(); - - this->m_hadEvent = false; } }