From: Simon Tatham Date: Sat, 28 Apr 2001 11:27:04 +0000 (+0000) Subject: Only update the system caret when we have the focus. This was X-Git-Tag: 0.52~330 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;ds=sidebyside;h=1c998f64827fe97296b3a422173ba9d7c03661e6;p=PuTTY.git 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... [originally from svn r1083] --- 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); } /*