Skip to content

cursor doesn't change on keypress (GTKAgg backend) #3447

Closed

Description

@kaufman

When changing the tool mode via keyboard shortcut (for example 'o' to Zoom), the cursor doesn't change immediately. Instead, the mouse has to be moved for the cursor to change. This behavior occurs on the GTKAgg backend, not sure about any others.

Activity

  1. added this to the v1.4.x milestone on Sep 1, 2014
  2. kaufman commented on Sep 1, 2014

    @kaufman
    ContributorAuthor

    The backends MacOSX and Qt4Agg also have this problem.

  3. tacaswell commented on Sep 1, 2014

    @tacaswell
    Member

    This is probably related to the draw vs draw_idle issues. For the most part we try to let the gui-framework decide when to re-draw anything on the screen.

    I suspect that we are not invalidating the right things when we change the cursor.

  4. fariza commented on Sep 5, 2014

    @fariza
    Member

    The problem is that in the toolbar the set_cursor method is called wihtin the mouse_move method.
    This happens in all the backends that I tested (QT, GTK3, TK) but from the code I guess it happens everywhere.

    I'll see what I can do to fix this.

  5. fariza commented on Sep 5, 2014

    @fariza
    Member

    @tacaswell How do I know where the cursor is, if the event is a keystroke?

    Edit.
    Sorry, stupid question it's included in the event

  6. fariza commented on Sep 5, 2014

    @fariza
    Member

    Done PR #3474

  7. fariza commented on Sep 9, 2014

    @fariza
    Member

    @tacaswell please close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions