No description
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. |
||
|---|---|---|
| .github/workflows | ||
| cosmic-comp-config | ||
| data | ||
| debian | ||
| resources | ||
| src | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| i18n.toml | ||
| LICENSE | ||
| Makefile | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||