No description
Find a file
Ian Douglas Scott 9cc68dcbcc screencopy: Fix transform for damage rect advertised to client
This fixes two issues:
- The `area` passed to `to_buffer()` should match the dimensions of the
  output/etc. being captured, rather than coming from the damage rect
  size.
- The transform needs to be inverted.

Previously, rotated outputs could cause a crash
`xdg-desktop-portal-cosmic`, since the compositor was passing negative
coordinates in `damage`, and the client used the same in
`damage_buffer`. This was causing
https://github.com/pop-os/xdg-desktop-portal-cosmic/issues/165.

The portal crash no longer occurs, and logging in
xdg-desktop-portal-cosmic shows damage rects that match expectation
while moving the cursor over different corners of a workspace.
2025-09-02 17:12:37 +02:00
.github/workflows chore: Rust 2024 edition 2025-08-21 13:10:11 +02:00
cosmic-comp-config cleanup 2025-08-26 11:30:56 -04:00
data Fix vim-ish k and j discrepancy in keymap 2025-09-01 13:15:35 +02:00
debian chore: Add libdisplay-info dependency for packaging 2025-01-06 20:23:05 +01:00
resources i18n(ar): Update Arabic translations 2025-09-01 13:14:53 +02:00
src screencopy: Fix transform for damage rect advertised to client 2025-09-02 17:12:37 +02:00
.gitignore Rework source filtering. 2023-01-04 01:52:16 -08:00
build.rs deps: Update to wayland-rs.0.30 2022-07-04 16:01:06 +02:00
Cargo.lock cleanup 2025-08-26 11:30:56 -04:00
Cargo.toml cleanup 2025-08-26 11:30:56 -04:00
flake.lock Update and fix flake.nix 2024-09-02 19:44:51 +02:00
flake.nix fix: add missing libdisplay-info library into flake.nix 2025-01-12 13:09:03 +01:00
i18n.toml i18n support 2023-07-06 00:04:34 +02:00
LICENSE Initial commit 2021-12-15 17:25:15 +01:00
Makefile Use new config from cosmic-settings-config 2024-09-04 20:50:42 +02:00
rust-toolchain.toml Update toolchain to Rust 1.85 2025-05-19 21:29:51 +02:00
rustfmt.toml chore: Rust 2024 edition 2025-08-21 13:10:11 +02:00