Auto-lock the cursor in single display borderless windowed scenarios

This commit is contained in:
Cameron Gutman
2025-10-22 23:13:03 -05:00
parent 4ec549650d
commit 9bcc6291be
2 changed files with 11 additions and 2 deletions

View File

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