diff src/w32fns.c @ 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 e7bd87148368
children 87acd2b6ce97
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
 	  {