atomic: clear invalid cursor buffers

This commit is contained in:
Victor Brekenfeld 2020-05-03 17:56:04 +02:00
parent 163533a72a
commit 140185f6f5
1 changed files with 1 additions and 0 deletions

View File

@ -861,6 +861,7 @@ impl<A: AsRawFd + 'static> AtomicDrmSurfaceInternal<A> {
}, },
Err(err) => { Err(err) => {
warn!(self.logger, "Cursor FB invalid: {}. Skipping.", err); warn!(self.logger, "Cursor FB invalid: {}. Skipping.", err);
self.cursor.framebuffer.set(None);
} }
} }
} }