client: addressed warning in build

This commit is contained in:
Brad Stein 2025-12-01 00:11:23 -03:00
parent 3aef06001b
commit 6194848b0e
6 changed files with 10 additions and 11 deletions

View File

@ -8,6 +8,7 @@ use gst::prelude::*;
use lesavka_common::lesavka::VideoPacket;
pub struct CameraCapture {
#[allow(dead_code)] // kept alive to hold PLAYING state
pipeline: gst::Pipeline,
sink: gst_app::AppSink,
}

View File

@ -145,12 +145,6 @@ impl InputAggregator {
}
}
#[derive(Debug)]
struct Classification {
keyboard: Option<()>,
mouse: Option<()>,
}
/// The classification function
fn classify_device(dev: &Device) -> DeviceKind {
let evbits = dev.supported_events();

View File

@ -12,6 +12,7 @@ use shell_escape::unix::escape;
use std::sync::atomic::{AtomicU64, Ordering};
pub struct MicrophoneCapture {
#[allow(dead_code)] // kept alive to hold PLAYING state
pipeline: gst::Pipeline,
sink: gst_app::AppSink,
}

View File

@ -28,7 +28,9 @@ impl MouseAggregator {
Self { dev, tx, dev_mode, sending_disabled: false, next_send: Instant::now(), buttons:0, last_buttons:0, dx:0, dy:0, wheel:0 }
}
#[inline] fn slog(&self, f: impl FnOnce()) { if self.dev_mode { f() } }
#[inline]
#[allow(dead_code)]
fn slog(&self, f: impl FnOnce()) { if self.dev_mode { f() } }
pub fn set_grab(&mut self, grab: bool) {
let _ = if grab { self.dev.grab() } else { self.dev.ungrab() };
}
@ -108,4 +110,3 @@ impl Drop for MouseAggregator {
});
}
}

View File

@ -27,8 +27,10 @@ async fn main() -> Result<()> {
if env::var_os("WAYLAND_DISPLAY").is_some() {
if let Some(desktop) = env::var_os("XDG_CURRENT_DESKTOP") {
if desktop.to_string_lossy().to_ascii_lowercase().contains("kde") {
env::set_var("GDK_BACKEND", "x11");
env::set_var("WINIT_UNIX_BACKEND", "x11");
unsafe {
env::set_var("GDK_BACKEND", "x11");
env::set_var("WINIT_UNIX_BACKEND", "x11");
}
}
}
}

View File

@ -68,7 +68,7 @@ impl MonitorWindow {
if let Ok(overlay) = sink_elem.dynamic_cast::<VideoOverlay>() {
if let Some(r) = rects.get(id as usize) {
// 1. Tell glimagesink how to crop the texture in its own window
overlay.set_render_rectangle(r.x, r.y, r.w, r.h);
let _ = overlay.set_render_rectangle(r.x, r.y, r.w, r.h);
debug!(
"🔲 eye-{id} → render_rectangle({}, {}, {}, {})",
r.x, r.y, r.w, r.h