mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 10:40:59 +00:00
Auto-lock the cursor in single display borderless windowed scenarios
This commit is contained in:
@@ -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