mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-16 13:23:07 +00:00
feat: disable text input when window gains focus
This commit is contained in:
committed by
Cameron Gutman
parent
200cab9d17
commit
fb9a164111
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user