Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse_area: Fix on_drag triggers #170

Merged
merged 1 commit into from
Sep 19, 2024
Merged

mouse_area: Fix on_drag triggers #170

merged 1 commit into from
Sep 19, 2024

Conversation

Drakulix
Copy link
Member

@Drakulix Drakulix commented Sep 19, 2024

Previously the following error cases could happen:

  • A double click could leave drag_initiated in a Some-state, causing movement afterwards to falsely trigger a drag message
  • We never reset drag_initiated, if we didn't have a on_release-message set, which causes similar symptoms

Also instead of updating drag_initiated in multiple places for the same event, try to only handle it in the respective ButtonPressed/ButtonReleased if-conditions once. (With the exception of double-clicks...)

Fixes pop-os/cosmic-comp#797

@Drakulix Drakulix requested a review from a team September 19, 2024 17:33
@mmstick mmstick merged commit 74e9a62 into master Sep 19, 2024
6 of 26 checks passed
@mmstick mmstick deleted the mouse-area-fixes branch September 19, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When tiled or floating, clicking and releasing SSDs grabs them
2 participants