mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-11 18:26:18 +00:00
Generate synthetic mouse button up if the mouse has left the window and the button is raised
This commit is contained in:
@@ -1221,6 +1221,9 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
||||
if (event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) {
|
||||
m_InputHandler->notifyFocusLost();
|
||||
}
|
||||
else if (event.window.event == SDL_WINDOWEVENT_LEAVE) {
|
||||
m_InputHandler->notifyMouseLeave();
|
||||
}
|
||||
|
||||
// Capture the mouse on SDL_WINDOWEVENT_ENTER if needed
|
||||
if (needsFirstEnterCapture && event.window.event == SDL_WINDOWEVENT_ENTER) {
|
||||
|
||||
Reference in New Issue
Block a user