mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-23 08:30:31 +00:00
Auto-lock the cursor in single display borderless windowed scenarios
This commit is contained in:
1 parent
4ec549650d
commit
9bcc6291be
2 files changed
+11
-2
No files matched your search
@@ -2351,6 +2351,13 @@ void Session::execInternal()
|
||||
case SDL_FINGERUP:
|
||||
m_InputHandler->handleTouchFingerEvent(&event.tfinger);
|
||||
break;
|
||||
case SDL_DISPLAYEVENT:
|
||||
switch (event.display.event) {
|
||||
case SDL_DISPLAYEVENT_CONNECTED:
|
||||
case SDL_DISPLAYEVENT_DISCONNECTED:
|
||||
m_InputHandler->updatePointerRegionLock();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user