portal: damage buffer before committing
This commit is contained in:
parent
260d241f79
commit
edafe16742
2 changed files with 11 additions and 0 deletions
|
|
@ -661,6 +661,7 @@ impl WindowData {
|
|||
buf.free.set(false);
|
||||
|
||||
self.surface.attach(&buf.wl);
|
||||
self.surface.damage();
|
||||
self.surface.commit();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,16 @@ impl UsrWlSurface {
|
|||
});
|
||||
}
|
||||
|
||||
pub fn damage(&self) {
|
||||
self.con.request(DamageBuffer {
|
||||
self_id: self.id,
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: i32::MAX,
|
||||
height: i32::MAX,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn frame<F>(&self, f: F)
|
||||
where
|
||||
F: FnOnce() + 'static,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue