Commit 5702a941 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Don't repaint the caret in SetCaretPos if the position doesn't change.

parent 84412cb0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment