From: simon Date: Sat, 29 Dec 2001 14:47:59 +0000 (+0000) Subject: Jordan Russell's patch (3rd of several). We now don't call TermOut() X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/4c472521e531fb420537806e1724c4a7a0041977 Jordan Russell's patch (3rd of several). We now don't call TermOut() if the PuTTY window has the mouse capture (i.e. a drag-select is in progress). This means you can drag-select at your leisure without the screen contents wandering around providing you with a moving target. Likewise dragging the scrollbar to find a piece of history in the scrollback. git-svn-id: svn://svn.tartarus.org/sgt/putty@1517 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/window.c b/window.c index 49a7893b..59901010 100644 --- a/window.c +++ b/window.c @@ -723,7 +723,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) timer_id = 0; } HideCaret(hwnd); - term_out(); + if (GetCapture() != hwnd) + term_out(); term_update(); ShowCaret(hwnd); @@ -1517,7 +1518,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, case WM_TIMER: if (pending_netevent) enact_pending_netevent(); - term_out(); + if (GetCapture() != hwnd) + term_out(); noise_regular(); HideCaret(hwnd); term_update();