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

WIP Subsurfaces for drag surfaces #205

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

WIP Subsurfaces for drag surfaces #205

wants to merge 1 commit into from

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Dec 17, 2024

Use Icon::Surface instead of Icon::Buffer, so we can then create subsurfaces of the wl_surface.

Using .screenshot() then copying to an shm buffer is suboptimal, but this does seem overall better than with the older Iced version when a drag surface didn't appear until a Vulkan surface could be created for it.

This seems to be working okay now, but there are a few things to fix. As well as a bug I'm seeing in cosmic-comp. cosmic-workspaces also wants the offset support for drag surfaces we previously had.

Use `Icon::Surface` instead of `Icon::Buffer`, so we can then create
subsurfaces of the `wl_surface`.

Using `.screenshot()` then copying to an shm buffer is suboptimal, but
this does seem overall better than with the older Iced version when a
drag surface didn't appear until a Vulkan surface could be created for
it.
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.

1 participant