diff options
| author | Geoff Voelker | 1998-09-01 00:30:46 +0000 |
|---|---|---|
| committer | Geoff Voelker | 1998-09-01 00:30:46 +0000 |
| commit | 490822ffc807a37b5ccc51f367b09edf101a8ee6 (patch) | |
| tree | e79633d19f58d6122909eb5421ea73135b9650d7 /src | |
| parent | a8972052908f8ca89bf5f1dd87dd33cc4bbf42a0 (diff) | |
| download | emacs-490822ffc807a37b5ccc51f367b09edf101a8ee6.tar.gz emacs-490822ffc807a37b5ccc51f367b09edf101a8ee6.zip | |
(w32_wnd_proc): Always zero button_state when releasing
mouse capture.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index b08ac3f86f2..ea683d08fef 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -3898,6 +3898,7 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3898 | /* Remember we did a SetCapture on the initial mouse down event, | 3898 | /* Remember we did a SetCapture on the initial mouse down event, |
| 3899 | so for safety, we make sure the capture is cancelled now. */ | 3899 | so for safety, we make sure the capture is cancelled now. */ |
| 3900 | ReleaseCapture (); | 3900 | ReleaseCapture (); |
| 3901 | button_state = 0; | ||
| 3901 | 3902 | ||
| 3902 | /* Use menubar_active to indicate that WM_INITMENU is from | 3903 | /* Use menubar_active to indicate that WM_INITMENU is from |
| 3903 | TrackPopupMenu below, and should be ignored. */ | 3904 | TrackPopupMenu below, and should be ignored. */ |
| @@ -3921,7 +3922,6 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) | |||
| 3921 | { | 3922 | { |
| 3922 | retval = 0; | 3923 | retval = 0; |
| 3923 | } | 3924 | } |
| 3924 | button_state = 0; | ||
| 3925 | } | 3925 | } |
| 3926 | else | 3926 | else |
| 3927 | { | 3927 | { |