render: fix wlr-screencopy with scaled outputs
This commit is contained in:
parent
b078329a50
commit
5f14f56461
2 changed files with 11 additions and 3 deletions
|
|
@ -52,12 +52,13 @@ impl ZwlrScreencopyFrameV1 {
|
|||
}
|
||||
|
||||
pub fn send_damage(&self) {
|
||||
let pos = self.output.pos.get();
|
||||
self.client.event(Damage {
|
||||
self_id: self.id,
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: self.rect.width() as _,
|
||||
height: self.rect.height() as _,
|
||||
width: pos.width() as _,
|
||||
height: pos.height() as _,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue