Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Handle multi-clicks in Wayland backend #52

Open
PoignardAzur opened this issue Dec 23, 2022 · 0 comments
Open

Handle multi-clicks in Wayland backend #52

PoignardAzur opened this issue Dec 23, 2022 · 0 comments
Labels
backend:wayland bug Something isn't working help wanted Extra attention is needed

Comments

@PoignardAzur
Copy link
Contributor

Currently, the Wayland backend code for mouse presses is roughly this:

self.clickevent.borrow_mut().debounce(MouseEvtKind::Down(
    mouse::MouseEvent {
        pos: self.pos.get(),
        buttons: *self.buttons.borrow(),
        mods: Modifiers::empty(),
        count: 1,
        focus: false,
        button,
        wheel_delta: Vec2::ZERO,
    },
))

Notice that the click count is always one; this means double-clicks and triple-clicks aren't detected.

@derekdreery derekdreery added bug Something isn't working help wanted Extra attention is needed labels Dec 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backend:wayland bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants