~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Jordan Russell's patch: only process mouse drags when we have the
[sgt/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
5ea24dc
..
49a7893
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-1937,7
+1937,8
@@
static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
*/
noise_ultralight(lParam);
- if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) {
+ if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON) &&
+ GetCapture() == hwnd) {
Mouse_Button b;
if (wParam & MK_LBUTTON)
b = MBT_LEFT;