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

Fix TilingLayout::element_under position with global workspaces #172

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 13, 2023

I didn't see any issue with how mouse events were handled, but a bisect showed b818a68 caused the issue. Reverting the definition of element_under to the version before that change fixed the behavior.

Comparing what both versions return, the right element is returned, but the location returned is wrong. This makes the return value match the position that was returned by the previous implementation. It seems to be working correctly now.

Fixes #161.

I didn't see any issue with how mouse events were handled, but a bisect
showed b818a68 caused the issue.
Reverting the definition of `element_under` to the version before that
change fixed the behavior.

Comparing what both versions return, the right element is returned, but
the location returned is wrong. This makes the return value match the
position that was returned by the previous implementation. It seems to
be working correctly now.

Fixes #161.
Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a ton! This looks like it would have taken me quite the time to figure it out as well.

@ids1024 ids1024 merged commit af457ef into master_jammy Sep 13, 2023
1 check passed
@ids1024 ids1024 deleted the element-under-global branch September 13, 2023 22:27
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.

Mouse clicks not properly delivered when in Global workspace mode
2 participants