Skip to content

Commit

Permalink
Merge pull request #303 from nickdowell/fix-win32-coptionmenu
Browse files Browse the repository at this point in the history
Fix erroneous SetCapture after COptionMenu::onMouseDown
  • Loading branch information
scheffle committed Jul 3, 2023
2 parents 6e4c78f + 661b7d4 commit f3f776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/platform/win32/win32frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ LONG_PTR WINAPI Win32Frame::proc (HWND hwnd, UINT message, WPARAM wParam, LPARAM

event.mousePosition (GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
pFrame->platformOnEvent (event);
if (event.consumed && getPlatformWindow ())
if (event.consumed && !event.ignoreFollowUpMoveAndUpEvents () && getPlatformWindow ())
SetCapture (getPlatformWindow ());
return 0;
}
Expand Down

0 comments on commit f3f776c

Please sign in to comment.