mirror of
https://github.com/reactos/wine.git
synced 2025-02-05 03:26:33 +00:00
user32: Don't repaint the caret in SetCaretPos if the position doesn't change.
This commit is contained in:
parent
84412cb0f5
commit
5702a941ad
@ -269,7 +269,7 @@ BOOL WINAPI SetCaretPos( INT x, INT y )
|
||||
}
|
||||
}
|
||||
SERVER_END_REQ;
|
||||
if (ret && !hidden)
|
||||
if (ret && !hidden && (x != r.left || y != r.top))
|
||||
{
|
||||
if (old_state) CARET_DisplayCaret( hwnd, &r );
|
||||
r.right += x - r.left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user