summaryrefslogtreecommitdiff
path: root/x11-wm/niri/files/patch-udev
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/niri/files/patch-udev')
-rw-r--r--x11-wm/niri/files/patch-udev28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-wm/niri/files/patch-udev b/x11-wm/niri/files/patch-udev
new file mode 100644
index 000000000000..e5bbc9af6b46
--- /dev/null
+++ b/x11-wm/niri/files/patch-udev
@@ -0,0 +1,28 @@
+https://github.com/YaLTeR/niri/issues/3013
+
+--- src/backend/tty.rs.orig 2025-11-29 07:05:44 UTC
++++ src/backend/tty.rs
+@@ -725,6 +725,7 @@ impl Tty {
+
+ // Only consider primary node on udev event
+ // https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/768fbaad54027f8dd027e7e015e8eeb93cb38c52
++ #[cfg(not(target_os = "freebsd"))]
+ if node.ty() != NodeType::Primary {
+ debug!("not a primary node, skipping");
+ return Ok(());
+@@ -911,6 +912,7 @@ impl Tty {
+ return;
+ };
+
++ #[cfg(not(target_os = "freebsd"))]
+ if node.ty() != NodeType::Primary {
+ debug!("not a primary node, skipping");
+ return;
+@@ -1074,6 +1076,7 @@ impl Tty {
+ return;
+ };
+
++ #[cfg(not(target_os = "freebsd"))]
+ if node.ty() != NodeType::Primary {
+ debug!("not a primary node, skipping");
+ return;