feat: disable text input when window gains focus
This commit is contained in:
parent
200cab9d17
commit
fb9a164111
3 changed files with 12 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue