features fix

This commit is contained in:
galister committed 2026-11-25 14:49:56 +09:00
1 parent 3f1686eb0c
commit b234806630
5 files changed
+14 -7

No files matched your search

+1 -1
View File
@@ -500,7 +500,7 @@ impl DashInterface<AppState> for DashInterfaceLive {
Ok(())
}
#[allow(unreachable_patterns)]
#[allow(unreachable_patterns, unused_variables)]
fn backend_task(&mut self, app: &mut AppState, mode: DashBackendTask) -> anyhow::Result<()> {
#[cfg(feature = "openvr")]
if app.feats.xr_backend.is_open_vr() {
+2
View File
@@ -1141,6 +1141,7 @@ fn extent_from_format(fmt: FrameFormat, config: &GeneralConfig) -> [u32; 2] {
[w, h]
}
#[cfg(any(feature = "wayland", feature = "x11", feature = "pipewire"))]
macro_rules! new_wlx_capture {
($app:expr, $capture:expr) => {{
if $app.gfx.has_capture_queue() {
@@ -1156,4 +1157,5 @@ macro_rules! new_wlx_capture {
}};
}
#[cfg(any(feature = "wayland", feature = "x11", feature = "pipewire"))]
pub(super) use new_wlx_capture;
+5 -4
View File
@@ -1,13 +1,10 @@
use std::sync::Arc;
use wgui::log::LogErr;
use glam::{DVec2, vec2};
use wlx_capture::{
frame::Transform,
xshm::{XshmCapture, XshmScreen},
};
use wlx_common::{astr_containers::AStrMapExt, config::CaptureMethod};
use crate::{
overlays::screen::{backend::CaptureType, create_screen_from_backend},
@@ -17,7 +14,11 @@ use crate::{
use super::{ScreenCreateData, backend::ScreenBackend, capture::new_wlx_capture};
#[cfg(feature = "pipewire")]
use crate::{overlays::screen::pw::ScreenCastBackend, windowing::backend::OverlayBackend};
use {
crate::{overlays::screen::pw::ScreenCastBackend, windowing::backend::OverlayBackend},
wgui::log::LogErr,
wlx_common::{astr_containers::AStrMapExt, config::CaptureMethod},
};
impl ScreenBackend {
pub fn new_xshm(screen: Arc<XshmScreen>, app: &AppState) -> Self {
+4 -2
View File
@@ -21,6 +21,8 @@ use wlx_common::{
windowing::OverlayWindowState,
};
#[cfg(any(feature = "wayland", feature = "x11"))]
use crate::subsystem::clipboard;
use crate::{
backend::task::{OverlayTask, TaskType, ToggleMode},
gui::{
@@ -33,7 +35,7 @@ use crate::{
overlays::toast::Toast,
state::AppState,
subsystem::{
clipboard::{self, ClipboardProvider},
clipboard::ClipboardProvider,
hid::VirtualKey,
input::InputFocus,
whisper_stt::{PttProgress, WHISPER_LANGUAGES, WhisperStt},
@@ -43,7 +45,7 @@ use crate::{
window::{OverlayCategory, OverlayWindowConfig},
},
};
#[cfg(feature = "wayland")]
#[cfg(any(feature = "wayland", feature = "x11"))]
use wlx_common::DesktopBackend;
const WHISPER_NAME: &str = "whisper";
+2
View File
@@ -3,6 +3,7 @@ use glam::Affine3A;
use idmap::IdMap;
use serde::{Deserialize, Serialize};
use smallvec::{SmallVec, smallvec};
#[cfg(feature = "pipewire")]
use std::path::PathBuf;
use std::rc::Rc;
use std::sync::Arc;
@@ -11,6 +12,7 @@ use wgui::theme::WguiTheme;
use wgui::{gfx::WGfx, globals::WguiGlobals, renderer::context::SharedContext as WSharedContext};
#[cfg(feature = "pipewire")]
use wlx_capture::pipewire::ScreenCastManager;
#[cfg(feature = "pipewire")]
use wlx_common::config::PwTokenMap;
use wlx_common::{
audio,