subsurface_widget: Handle viewport and set source rectangle

This is needed to crop subsurface when needed, instead of rendering
overlapping other things. And to offset while scrolling.
This commit is contained in:
Ian Douglas Scott 2025-05-09 15:44:11 -07:00 committed by Ashley Wulber
parent d0b4d0e9c9
commit 58f6ea3f08
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 45 additions and 13 deletions

View file

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