all: implement damage tracking
This commit is contained in:
parent
76a3c50560
commit
bb66abb817
28 changed files with 473 additions and 82 deletions
|
|
@ -588,6 +588,11 @@ impl SurfaceExt for ZwlrLayerSurfaceV1 {
|
|||
}
|
||||
if self.mapped.get() != was_mapped {
|
||||
output.update_visible();
|
||||
if self.mapped.get() {
|
||||
let (x, y) = self.surface.buffer_abs_pos.get().position();
|
||||
let extents = self.surface.extents.get().move_(x, y);
|
||||
self.client.state.damage(extents);
|
||||
}
|
||||
}
|
||||
if self.mapped.get() {
|
||||
match self.keyboard_interactivity.get() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue