mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -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:
parent
76dfe1cac9
commit
1c998f6482
1
window.c
1
window.c
@ -1665,6 +1665,7 @@ static LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
|
|||||||
* have one.)
|
* have one.)
|
||||||
*/
|
*/
|
||||||
void sys_cursor(int x, int y) {
|
void sys_cursor(int x, int y) {
|
||||||
|
if (has_focus)
|
||||||
SetCaretPos(x * font_width, y * font_height);
|
SetCaretPos(x * font_width, y * font_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user