Revert "subsurface_widget: Handle viewport and set source rectangle"

This reverts commit 15547dec8f83af1ea6dbed1964302400fc17c257 from
https://github.com/pop-os/iced/pull/227.

This is causing issues in `cosmic-workspaces`. It seems I didn't test it
properly outside the examples here... and this misinterpreted exactly
what the (undocumented) `viewport` argument means (Iced's `image` widget also
needed a fix to handle viewports properly since our fork:
https://github.com/iced-rs/iced/pull/2752).

It should be possible to fix, but revert for now.
This commit is contained in:
Ian Douglas Scott 2025-07-21 13:39:18 -07:00 committed by Ashley Wulber
parent 7a1f8b3472
commit 5924fea0b1
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 13 additions and 45 deletions

View file

@ -1612,8 +1612,7 @@ impl SctkState {
wp_fractional_scale,
wl_buffer: None,
source: None,
destination: Some(bounds),
bounds: Some(bounds),
transform:
cctk::wayland_client::protocol::wl_output::Transform::Normal,
z: settings.z,