mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
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. [originally from svn r1517]
This commit is contained in:
parent
66a53cd2c0
commit
02a926f6c1
6
window.c
6
window.c
@ -723,7 +723,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
|||||||
timer_id = 0;
|
timer_id = 0;
|
||||||
}
|
}
|
||||||
HideCaret(hwnd);
|
HideCaret(hwnd);
|
||||||
term_out();
|
if (GetCapture() != hwnd)
|
||||||
|
term_out();
|
||||||
term_update();
|
term_update();
|
||||||
ShowCaret(hwnd);
|
ShowCaret(hwnd);
|
||||||
|
|
||||||
@ -1517,7 +1518,8 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
case WM_TIMER:
|
case WM_TIMER:
|
||||||
if (pending_netevent)
|
if (pending_netevent)
|
||||||
enact_pending_netevent();
|
enact_pending_netevent();
|
||||||
term_out();
|
if (GetCapture() != hwnd)
|
||||||
|
term_out();
|
||||||
noise_regular();
|
noise_regular();
|
||||||
HideCaret(hwnd);
|
HideCaret(hwnd);
|
||||||
term_update();
|
term_update();
|
||||||
|
Loading…
Reference in New Issue
Block a user