Skip to content

mouse_warping unhides cursor on keyboard focus change #8966

@soubaer

Description

@soubaer

Description:

I use this config:

mouse_warping container
seat seat0 hide_cursor 1000

When I change focus with the keyboard with focus <direction>, the cursor warps to the new container as desired but becomes visible for 1 second.

This is annoying, the cursor keeps flashing back on every focus change. It is also an issue with mouse_warping output at a lesser extent.

Programmatic cursor warps should update the cursor coordinates without making it visible again. Only physical mouse movement should unhide the cursor.

Suggested fix:

In sway/input/cursor.c, remove the cursor_unhide(cursor); calls in:

  • cursor_warp_to_container() (line 1178)
  • cursor_warp_to_workspace() (line 1195)

I can submit a PR if you're interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or incremental improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions