# HG changeset patch # User Geoff Voelker # Date 904609846 0 # Node ID 95a21363958940e7d4e4e1373855e6e8aec7e2f2 # Parent b468525b44b8690de800b5d5235ffd9601e82f4e (w32_wnd_proc): Always zero button_state when releasing mouse capture. diff -r b468525b44b8 -r 95a213639589 src/w32fns.c --- a/src/w32fns.c Mon Aug 31 21:18:28 1998 +0000 +++ b/src/w32fns.c Tue Sep 01 00:30:46 1998 +0000 @@ -3898,6 +3898,7 @@ /* Remember we did a SetCapture on the initial mouse down event, so for safety, we make sure the capture is cancelled now. */ ReleaseCapture (); + button_state = 0; /* Use menubar_active to indicate that WM_INITMENU is from TrackPopupMenu below, and should be ignored. */ @@ -3921,7 +3922,6 @@ { retval = 0; } - button_state = 0; } else {