aboutsummaryrefslogtreecommitdiff
path: root/niri-config/src/debug.rs
diff options
context:
space:
mode:
authorShaun Ren <shaun.ren@linux.com>2025-08-30 20:42:46 -0400
committerIvan Molodetskikh <yalterz@gmail.com>2025-10-02 10:02:16 +0300
commit5c91e3191dff08177740d642344d9eb67122139d (patch)
tree7722c928bbc9e855c28266a65939bb9d2026525e /niri-config/src/debug.rs
parentb7f1e382a28961216afa6916c9c704e08a3c9617 (diff)
downloadniri-5c91e3191dff08177740d642344d9eb67122139d.tar.gz
niri-5c91e3191dff08177740d642344d9eb67122139d.tar.bz2
niri-5c91e3191dff08177740d642344d9eb67122139d.zip
tty: Add support for disabling DRM devices
Diffstat (limited to 'niri-config/src/debug.rs')
-rw-r--r--niri-config/src/debug.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/niri-config/src/debug.rs b/niri-config/src/debug.rs
index 82bfe875..d69dd2bf 100644
--- a/niri-config/src/debug.rs
+++ b/niri-config/src/debug.rs
@@ -13,6 +13,7 @@ pub struct Debug {
pub keep_max_bpc_unchanged: bool,
pub restrict_primary_scanout_to_matching_format: bool,
pub render_drm_device: Option<PathBuf>,
+ pub ignored_drm_devices: Vec<PathBuf>,
pub force_pipewire_invalid_modifier: bool,
pub emulate_zero_presentation_time: bool,
pub disable_resize_throttling: bool,
@@ -45,6 +46,8 @@ pub struct DebugPart {
pub restrict_primary_scanout_to_matching_format: Option<Flag>,
#[knuffel(child, unwrap(argument))]
pub render_drm_device: Option<PathBuf>,
+ #[knuffel(children(name = "ignore-drm-device"), unwrap(argument))]
+ pub ignored_drm_devices: Vec<PathBuf>,
#[knuffel(child)]
pub force_pipewire_invalid_modifier: Option<Flag>,
#[knuffel(child)]
@@ -91,6 +94,9 @@ impl MergeWith<DebugPart> for Debug {
);
merge_clone_opt!((self, part), preview_render, render_drm_device);
+
+ self.ignored_drm_devices
+ .extend(part.ignored_drm_devices.iter().cloned());
}
}