From 2f8fe06f80a00754fb1aceff6ccdeed620427e4c Mon Sep 17 00:00:00 2001 From: = Date: Tue, 10 Sep 2024 08:58:51 +0200 Subject: [PATCH] Fix mouse enter/leave on Windows Before this fix, you had to lose window focus and get focus before WM_MOUSELEAVE would start tracking properly. --- vncviewer/Viewport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 58372e9664..96ce066416 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -122,7 +122,7 @@ Viewport::Viewport(int w, int h, const rfb::PixelFormat& /*serverPF*/, CConn* cc lastPointerPos(0, 0), mouseButtonMask(0), lastButtonMask(0), #ifdef WIN32 altGrArmed(false), - mouseHasLeft(false), + mouseHasLeft(true), #endif firstLEDState(true), pendingClientClipboard(false), menuCtrlKey(false), menuAltKey(false), cursor(nullptr)