]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Only update the system caret when we have the focus. This was
authorSimon Tatham <anakin@pobox.com>
Sat, 28 Apr 2001 11:27:04 +0000 (11:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 28 Apr 2001 11:27:04 +0000 (11:27 +0000)
apparently causing the weird caret behaviour in Change Settings,
because that routine was still being called...

[originally from svn r1083]

window.c

index 865ff805deba60a68c293592996288afbebf487b..62e4be75be9846fc8759ee6fb774a219c6d94aac 100644 (file)
--- 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);
 }
 
 /*