From d05e9f0b1a57129f45caa88679f74d5f3fd64631 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 13 May 2001 15:01:36 +0000 Subject: [PATCH] Fix wrong button codes in WM_MOUSEMOVE. [originally from svn r1124] --- window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/window.c b/window.c index 905c43ed..11aeb697 100644 --- a/window.c +++ b/window.c @@ -1591,11 +1591,11 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, if (wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON)) { Mouse_Button b; if (wParam & MK_LBUTTON) - b = MBT_SELECT; + b = MBT_LEFT; else if (wParam & MK_MBUTTON) - b = cfg.mouse_is_xterm ? MBT_PASTE : MBT_EXTEND; + b = MBT_MIDDLE; else - b = cfg.mouse_is_xterm ? MBT_EXTEND : MBT_PASTE; + b = MBT_RIGHT; term_mouse(b, MA_DRAG, TO_CHR_X(X_POS(lParam)), TO_CHR_Y(Y_POS(lParam)), wParam & MK_SHIFT, wParam & MK_CONTROL);