DisplayServerWindows: Fix mouse capture when button up message is missed
This commit is contained in:
parent
8753b07b05
commit
7275819a91
@ -3266,7 +3266,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||||||
SetCapture(hWnd);
|
SetCapture(hWnd);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (--pressrc <= 0) {
|
if (--pressrc <= 0 || last_button_state.is_empty()) {
|
||||||
if (mouse_mode != MOUSE_MODE_CAPTURED) {
|
if (mouse_mode != MOUSE_MODE_CAPTURED) {
|
||||||
ReleaseCapture();
|
ReleaseCapture();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user