From 257124288711bc9bc12cf7b6e159540d109a632d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 13 Jan 2026 23:00:22 +0300 Subject: [PATCH] screencopy: Pop first screencopy instead of last This was never found probably because no client submits multiple frames at once. --- src/protocols/screencopy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/screencopy.rs b/src/protocols/screencopy.rs index 6ca1485e..cfbf65e3 100644 --- a/src/protocols/screencopy.rs +++ b/src/protocols/screencopy.rs @@ -61,7 +61,7 @@ impl ScreencopyQueue { } pub fn pop(&mut self) -> Screencopy { - self.screencopies.pop().unwrap() + self.screencopies.remove(0) } pub fn remove_output(&mut self, output: &Output) {