changeset 23160:95a213639589

(w32_wnd_proc): Always zero button_state when releasing mouse capture.
author Geoff Voelker <voelker@cs.washington.edu>
date Tue, 01 Sep 1998 00:30:46 +0000
parents b468525b44b8
children 55a8313019f3
files src/w32fns.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
 	  {