From b1d986ee7104f7a61b7f94048468ea553ce4f42d Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 8 Nov 2023 14:09:34 -0800 Subject: [PATCH] Remove workaround for compositor issue that should be fixed --- src/wayland/screencopy.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/wayland/screencopy.rs b/src/wayland/screencopy.rs index 90b8ee2..1271ff8 100644 --- a/src/wayland/screencopy.rs +++ b/src/wayland/screencopy.rs @@ -32,12 +32,6 @@ impl ScreencopyHandler for AppData { }) .unwrap(); - // XXX fix in compositor - if buffer_info.width == 0 || buffer_info.height == 0 || buffer_info.stride == 0 { - session.destroy(); - return; - } - let mut buffer = capture.buffer.lock().unwrap(); // Create new buffer if none, or different format if !buffer