Fix reference to back buffer
This commit is contained in:
parent
9faaa4d6c8
commit
7ae2dc9e06
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ impl ScreencopySession {
|
|||
}
|
||||
|
||||
fn attach_buffer_and_commit(&mut self, capture: &Capture, conn: &Connection) {
|
||||
let Some(back) = self.buffers.as_mut().and_then(|x| x.last()) else {
|
||||
let Some(back) = self.buffers.as_ref().map(|x| &x[1]) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue