pop-os / cosmic-protocols

Addtional wayland-protocols used by the COSMIC desktop environment
27 stars 6 forks source link

Add cosmic-screencopy-v2 based on current ext-screencopy proposal #24

Closed Drakulix closed 6 months ago

Drakulix commented 6 months ago

(Also drops export-dmabuf.)

Draft until implemented everywhere

ids1024 commented 6 months ago

At some point we'll also want to switch this to make use of ext-foreign-toplevel-list-v1 (https://github.com/pop-os/cosmic-comp/pull/76).

ids1024 commented 6 months ago

Added a commit with cosmic-client-toolkit helpers for this. Which is used in https://github.com/pop-os/xdg-desktop-portal-cosmic/pull/31. The separate object for individual frames does seem a bit cleaner, and this implementation is more complete than the one that was previously here for v1. (But still missing handling for cursor sessions.)

Still needs to be implemented in cosmic-workspaces. And hopefully some of the logic that both xdg-desktop-portal-cosmic and cosmic-workspaces duplicate could be moved into cosmic-client-toolkit.