From d15263e45abd8da7692ecfc8ed12c57746ee2878 Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:31:12 +0100 Subject: [PATCH] gpui: Gate Linux screen capture APIs behind feature flag (#50300) We were missing the cfg statements in the `LinuxClient` trait definition Release Notes: - N/A --- crates/gpui_linux/src/linux/platform.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/gpui_linux/src/linux/platform.rs b/crates/gpui_linux/src/linux/platform.rs index f044b086a580ea70ef2b959ed5e8a0931f4ce4e9..ff79aa64b2f7cd61c3ab6a8b54e2e11b72614d0f 100644 --- a/crates/gpui_linux/src/linux/platform.rs +++ b/crates/gpui_linux/src/linux/platform.rs @@ -55,12 +55,12 @@ pub(crate) trait LinuxClient { fn display(&self, id: DisplayId) -> Option>; fn primary_display(&self) -> Option>; - #[allow(dead_code)] + #[cfg(feature = "screen-capture")] fn is_screen_capture_supported(&self) -> bool { false } - #[allow(dead_code)] + #[cfg(feature = "screen-capture")] fn screen_capture_sources( &self, ) -> oneshot::Receiver>>> {