From 906b488b343f937eb24ef30234f2ea22beca58a0 Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Thu, 5 Dec 2024 14:38:28 -0500 Subject: [PATCH] bring back linux cfg for xcon stuff --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3d8690d..c8ee6f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2931,6 +2931,7 @@ mod tests { // goto for killing xephyr no matter what let ok = 'defer: { + #[cfg(target_os = "linux")] unsafe { let xcon = match Connection::connect(Some(":1.0")) { Ok((xcon, _)) => xcon, @@ -2973,6 +2974,8 @@ mod tests { cleanup(); unsafe { xlib::XCloseDisplay(DPY); + + #[cfg(target_os = "linux")] drop(Box::from_raw(XCON)); }