aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 7db9e4d5..0aa05921 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -10,16 +10,21 @@ mod handlers;
mod input;
mod layout;
mod niri;
-mod pw_utils;
mod utils;
mod watcher;
+#[cfg(not(feature = "xdp-gnome-screencast"))]
+mod dummy_pw_utils;
+#[cfg(feature = "xdp-gnome-screencast")]
+mod pw_utils;
use std::ffi::OsString;
use std::path::PathBuf;
use std::{env, mem};
use clap::Parser;
use config::Config;
+#[cfg(not(feature = "xdp-gnome-screencast"))]
+use dummy_pw_utils as pw_utils;
use miette::{Context, NarratableReportHandler};
use niri::{Niri, State};
use portable_atomic::Ordering;