Auto-lock the cursor in single display borderless windowed scenarios

This commit is contained in:
Cameron Gutman committed 2025-10-22 23:13:03 -05:00
1 parent 4ec549650d
commit 9bcc6291be
2 files changed
+11 -2

No files matched your search

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