forge
Explore
Log in

Don't you dare go Hollow

screencopy: Pop first screencopy instead of last

Browse files at this commit

257124288711bc9bc12cf7b6e159540d109a632dIvan MolodetskikhParent: 6f92b32
This was never found probably because no client submits multiple frames
at once.
src/protocols/screencopy.rsmodified+1 -1
@@ -61,7 +61,7 @@ impl ScreencopyQueue {
61 }61 }
62 62
63 pub fn pop(&mut self) -> Screencopy {63 pub fn pop(&mut self) -> Screencopy {
64- self.screencopies.pop().unwrap()64+ self.screencopies.remove(0)
65 }65 }
66 66
67 pub fn remove_output(&mut self, output: &Output) {67 pub fn remove_output(&mut self, output: &Output) {