Commit graph

16 commits

Author SHA1 Message Date
Ian Douglas Scott
85436fa9d6 screencopy: Accumulate buffer damage 2025-09-17 14:30:24 -07:00
Ian Douglas Scott
7670bfb9ff Move swapchain size into a const 2025-09-17 14:30:24 -07:00
Ian Douglas Scott
5193756e4d Update cosmic-client-toolkit 2025-09-17 10:39:50 -07:00
Ian Douglas Scott
3aad95d463 screencopy: Capture with full damage
Should accumulate damage, but this will behave correctly, if not
optimally.

Not yet required with cosmic-comp implementation.
2025-09-16 09:34:56 -07:00
Ian Douglas Scott
7933eef149 screencopy: re-allocate buffers on BufferConstraints error
Doesn't always seem to work immediately. Does compositor need change to
not wait for damage to re-capture after constraint error?
2025-09-16 09:34:56 -07:00
Ian Douglas Scott
a4b1e73a8b screencopy: Only start capture in init_done if not capturing already 2025-09-16 09:34:56 -07:00
Ian Douglas Scott
655621fde0 Fix clippy lints 2025-04-21 11:32:07 -07:00
Ian Douglas Scott
74270a2deb Use ThreadExecutor instead of calloop executor
I thought the calloop executor had been fixed, but it still seems to
have issues that were preventing capture of continuous frames from
working consistently.

Fixes https://github.com/pop-os/cosmic-workspaces-epoch/issues/160.
2025-04-15 12:34:37 -07:00
Ian Douglas Scott
6b6bf454db Update to workspace v2, based on ext-workspace
Requires https://github.com/pop-os/cosmic-protocols/pull/51,
https://github.com/pop-os/cosmic-comp/pull/1225.

The new protocol version is a hard requirement, and this will panic
without it.
2025-03-07 22:24:36 -08:00
Ian Douglas Scott
4acd62abb0 Update for toplevel-info cctk changes 2025-02-13 11:46:45 -08:00
Ian Douglas Scott
a977667ac5 Use updated screencopy abstraction
Requires https://github.com/pop-os/cosmic-protocols/pull/46.
2025-02-04 13:58:20 -08:00
Ian Douglas Scott
764b4ae5f8 Apply screencopy transform to subsurfaces
Fixes https://github.com/pop-os/cosmic-workspaces-epoch/issues/17.
2025-01-15 10:18:50 -08:00
Ian Douglas Scott
b70828e23f Update iced/libcosmic 2025-01-13 10:26:45 -08:00
Ian Douglas Scott
bf6acc3f5f Destroy image_source after using it 2024-04-26 15:38:20 -07:00
Ian Douglas Scott
ee1d54a12b Format imports 2024-04-24 13:00:40 -07:00
Ian Douglas Scott
c75a48535a Add a mock backend for testing (including on other compositors)
Should help determine which issues are cosmic-comp bugs.
2024-04-23 13:44:59 -07:00
Renamed from src/wayland/screencopy.rs (Browse further)