Skip to content

Commit

Permalink
Fix mouse enter/leave on Windows
Browse files Browse the repository at this point in the history
Before this fix, you had to lose window focus and get focus before
WM_MOUSELEAVE would start tracking properly.
  • Loading branch information
adamhalim committed Sep 10, 2024
1 parent e83f9c8 commit 2f8fe06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vncviewer/Viewport.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f8fe06

Please sign in to comment.