mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-22 08:07:22 +00:00
Fix capturing mouse motion outside the window on sdl2-compat
This commit is contained in:
1 parent
7794a42843
commit
7f7f2c26d0
4 files changed
+33
-19
No files matched your search
@@ -128,8 +128,10 @@ void SdlInputHandler::handleMouseMotionEvent(SDL_MouseMotionEvent* event)
|
||||
Uint32 buttonState = SDL_GetMouseState(nullptr, nullptr);
|
||||
if (buttonState == 0) {
|
||||
if (m_PendingMouseButtonsAllUpOnVideoRegionLeave) {
|
||||
// Stop capturing the mouse now
|
||||
SDL_CaptureMouse(SDL_FALSE);
|
||||
if (m_NeedsManualCaptureOnLeave) {
|
||||
// Stop capturing the mouse now
|
||||
SDL_CaptureMouse(SDL_FALSE);
|
||||
}
|
||||
m_PendingMouseButtonsAllUpOnVideoRegionLeave = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user