Skip to content

in textviews the mouse cursor flickers while typing #353

@rmottola

Description

@rmottola

While typing in a NSTextView the mouse continuously changes between arrow and hairline.

Tests:
Ink Vs. TextEdit: in ink while you type, the cursor flickers, in TextEdit on Mac, not. The mouse cursor while typing hides, then reappears on first mouse movement.

GNUMail:
Create a new message

  • On GNUstep while typing in a TextField (address field) the mouse cursor stays a hairline (it always is so while inside the field)
  • On GNUstep while typing the text message, the mouse cursor changes back and forth.
  • On MacOS: both fields behave the same: the cursor is a hairline when inserting, when typing starts cursor hides and reappears at first mouse movements.

This is a carry-over of bug https://savannah.gnu.org/bugs/?47523 which still applies and was erroneously closed. It may be low-impact but it is still a bug, as per examples above (and because it used to work).

Original comment by Fred of 7-1-2018

It turns out that this was caused by a change Eric made in 2011. In the method [NSTextView.m -_updateState:] he added the update of the cursor rectangles, which is needed for internal cursor rectangles but would not be needed for the main one.
I tried a few simple solutions to fix this, but all of these would result in additional issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions