Skip to content

Commit

Permalink
bring back linux cfg for xcon stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Dec 5, 2024
1 parent d477d5d commit 906b488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -2973,6 +2974,8 @@ mod tests {
cleanup();
unsafe {
xlib::XCloseDisplay(DPY);

#[cfg(target_os = "linux")]
drop(Box::from_raw(XCON));
}

Expand Down

0 comments on commit 906b488

Please sign in to comment.