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

Add support for drag-and-drop surface offsets #206

Merged
merged 6 commits into from
Jan 13, 2025
Merged

Add support for drag-and-drop surface offsets #206

merged 6 commits into from
Jan 13, 2025

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Jan 3, 2025

Provides the same functionality as #134.

Still needs libcosmic update to pass on offset on drag start, and provide a way to set the offset of the surface. This also doesn't seem to be working as expected currently....

This also tries to clean up the way a tuple and Box<dyn Any> was used to be a little more organized.

The first `map()` call is unneded, and the second and third can be
combined. This seems a bit clearer.
This is not currently used. And is impossible to (soundly) use, since it
requires a `Send` bound, which `State` and `Element` lack.
This makes it easier to add a field, and makes the handling of
upcasting/downcasting a more organized.
@ids1024 ids1024 marked this pull request as ready for review January 7, 2025 21:58
@ids1024 ids1024 requested a review from a team January 7, 2025 21:58
@ids1024 ids1024 merged commit 570fe2f into master Jan 13, 2025
4 of 32 checks passed
@ids1024 ids1024 deleted the icon-surface branch January 13, 2025 15:45
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.

2 participants