Skip to content

Confined cursors "stick" to region borders #1890

@emekoi

Description

@emekoi

Copied from niri-wm/niri#3128

In niri, when a client attempts to confine the cursor to a given region, and the mouse approaches the borders of the region, it never actually reaches the borders of the region and instead gets stuck right before it. This happens in floating and tiled windows, but not in fullscreen windows as long as there is not a another monitor sharing region edge. This issue occurs with Wine, SDL3, and libwayland applications (I think Wine and SDL3 both use libwayland). The program in the video is in this gist. I don't have a good way of recording two monitors at once, so that isn't included in the video but the behavior on that shared edge is the same as in the floating case shown.

This behavior is reproducible in Anvil as well.

out.mp4

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