Skip to content

Mouse cursor is getting stuck on screen edge in some games #219

Description

@valeth

Operating System

Nixos

Wayland Compositor

Niri

Describe the issue.

In some games the mouse cursor can become stuck at either the left or right side of the screen, making it impossible to use the mouse for input in menus.

In the cases I tested (so far Warframe, and Deep Rock Galactic) the mouse can still escape and enter the window without issue, but clicking onto the window either won't work, or it captures the cursor and locks it in place again.

Sometimes the cursor can be corrected by switching the window to a different screen, but often it just gets stuck on the other side.

I was testing this with the latest release on NixOS unstable, and currently the flake.
The problem appears with both.

Here is a demonstration video to hopefully showcase the problem better:
https://youtu.be/QtgK6oVhPos

Steps to reproduce

I am currently not 100% sure how to trigger this reliably, but the following steps seem to result in it happening.

Precondition: Have multiple monitors

  1. Launch a game in fullscreen mode
  2. Move the cursor outside of the window onto a different screen
  3. Move the cursor back into the game window
  4. The cursor now has a chance to become stuck

Please confirm you have reproduced this on the latest commit.

  • I have reproduced this on the latest commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions