mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 03:53:01 -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
3
window.c
3
window.c
@ -1665,7 +1665,8 @@ 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) {
|
||||||
SetCaretPos(x * font_width, y * font_height);
|
if (has_focus)
|
||||||
|
SetCaretPos(x * font_width, y * font_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user