Sumudu Fernando points out that in the big r9214 destabilisation I
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 2 Oct 2012 19:31:33 +0000 (19:31 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 2 Oct 2012 19:31:33 +0000 (19:31 +0000)
mistakenly rearranged the logic in an if statement in window.c, with
the effect that scroll-wheel events are no longer sent via xterm mouse
tracking. Put it back to the way it was.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9679 cda61777-01e9-0310-a592-d414129be87e

windows/window.c

index 5fe2178..85b4699 100644 (file)
@@ -3221,8 +3221,9 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                } else
                    break;
 
-               if (send_raw_mouse && shift_pressed &&
-                   !(conf_get_int(conf, CONF_mouse_override))) {
+               if (send_raw_mouse &&
+                   !(conf_get_int(conf, CONF_mouse_override) &&
+                      shift_pressed)) {
                    /* Mouse wheel position is in screen coordinates for
                     * some reason */
                    POINT p;