feat: disable text input when window gains focus

This commit is contained in:
Qian23333 authored and Cameron Gutman committed 2025-10-20 23:33:10 -05:00
1 parent 200cab9d17
commit fb9a164111
3 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -2108,6 +2108,7 @@ void Session::execInternal()
if (m_Preferences->muteOnFocusLoss) {
m_AudioMuted = false;
}
m_InputHandler->notifyFocusGained();
break;
case SDL_WINDOWEVENT_LEAVE:
m_InputHandler->notifyMouseLeave();
@@ -2420,4 +2421,3 @@ DispatchDeferredCleanup:
// reference.
QThreadPool::globalInstance()->start(new DeferredSessionCleanupTask(this));
}