Skip to content

niri does not send a wl_pointer::enter event when layer surfaces spawn on the pointer #1194

@zeroeightysix

Description

@zeroeightysix

I'm writing a wayland client using sctk and running into the problem that pointer events aren't getting through if the surface's input region covers the pointer when it spawns. Sctk will refuse to pass on any motion events until it has seen a wl_pointer::enter:

https://github.com/Smithay/client-toolkit/blob/4cf0deff833012bc93e3b58d0f1c1c33bc0ee8bf/src/seat/pointer/mod.rs#L372

The wording of wl_pointer::enter:

"Notification that this seat's pointer is focused on a certain surface."

seems to suggest that this really does need to be sent once the compositor decides that any new pointer events will go to this surface, and not only when the pointer moves from one region to another?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions