feat: disable text input when window gains focus

This commit is contained in:
Qian23333
2025-06-15 09:47:56 +08:00
committed by Cameron Gutman
parent 200cab9d17
commit fb9a164111
3 changed files with 12 additions and 1 deletions

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));
}