mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
Fix longstanding mouse cursor bug: blinking and eating all CPU while near text
cursor. The reason is: mouse cursor goes into hide/visible loop while text cursor even not moved. PR: 25536 Submitted by: David Xu <davidx@viasoft.com.cn>
This commit is contained in:
parent
3d92386026
commit
55cafc98c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=73799
@ -1725,6 +1725,7 @@ scrn_update(scr_stat *scp, int show_cursor)
|
||||
if ((scp->status & (MOUSE_MOVED | MOUSE_HIDDEN))
|
||||
|| and_region(&s, &e, scp->start, scp->end)
|
||||
|| ((scp->status & CURSOR_ENABLED) &&
|
||||
(scp->cursor_pos != scp->cursor_oldpos) &&
|
||||
(and_region(&s, &e, scp->cursor_pos, scp->cursor_pos)
|
||||
|| and_region(&s, &e, scp->cursor_oldpos, scp->cursor_oldpos)))) {
|
||||
sc_remove_mouse_image(scp);
|
||||
|
Loading…
Reference in New Issue
Block a user