mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-08-07 17:36:32 +00:00
Fix capturing mouse motion outside the window on sdl2-compat
This commit is contained in:
@@ -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