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:
parent
d0b4d0e9c9
commit
58f6ea3f08
2 changed files with 45 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue