X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/78afa559a60dffbca397bd7a41934942a6a6c2ee..a21ea6e758b958f53e596d053718882bdd9d80ee:/window.c 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); } /*