From a21ea6e758b958f53e596d053718882bdd9d80ee Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 28 Apr 2001 11:27:04 +0000 Subject: [PATCH] Only update the system caret when we have the focus. This was apparently causing the weird caret behaviour in Change Settings, because that routine was still being called... git-svn-id: svn://svn.tartarus.org/sgt/putty@1083 cda61777-01e9-0310-a592-d414129be87e --- window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/window.c b/window.c index 865ff805..62e4be75 100644 --- a/window.c +++ b/window.c @@ -1665,7 +1665,8 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message, * have one.) */ void sys_cursor(int x, int y) { - SetCaretPos(x * font_width, y * font_height); + if (has_focus) + SetCaretPos(x * font_width, y * font_height); } /* -- 2.11.0