Enable screen share on windows (staff only for now as untested)

This commit is contained in:
Michael Sloan
2025-03-31 09:46:40 -06:00
parent 040e0784f3
commit 1a29dff7ca
2 changed files with 4 additions and 5 deletions

View File

@@ -399,9 +399,7 @@ impl Platform for WindowsPlatform {
fn screen_capture_sources(
&self,
) -> oneshot::Receiver<Result<Vec<Box<dyn ScreenCaptureSource>>>> {
let (mut tx, rx) = oneshot::channel();
tx.send(Err(anyhow!("screen capture not implemented"))).ok();
rx
scap_screen_sources()
}
fn active_window(&self) -> Option<AnyWindowHandle> {

View File

@@ -2,6 +2,7 @@ use std::sync::Arc;
use call::{ActiveCall, ParticipantLocation, Room};
use client::{proto::PeerId, User};
use feature_flags::FeatureFlagAppExt;
use gpui::{actions, App, Task, Window};
use gpui::{canvas, point, AnyElement, Hsla, IntoElement, MouseButton, Path, Styled};
use rpc::proto::{self};
@@ -301,8 +302,8 @@ impl TitleBar {
let can_share_projects = room.can_share_projects();
let screen_sharing_supported = match self.platform_style {
PlatformStyle::Mac | PlatformStyle::Linux => true,
// todo!
PlatformStyle::Windows => false,
// Windows screen sharing not yet tested.
PlatformStyle::Windows => cx.is_staff(),
};
let mut children = Vec::new();