1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

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]
This commit is contained in:
Simon Tatham 2001-04-28 11:27:04 +00:00
parent 76dfe1cac9
commit 1c998f6482

View File

@ -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);
}
/*