Skip to content

Commit

Permalink
remove debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Dec 30, 2023
1 parent a35739d commit 53f89ed
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions blocks/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::{
use config::BLOCKS;
use libc::{c_uint, c_void, sighandler_t, signal, SIGINT, SIGRTMIN, SIGTERM};
use x11::xlib::{
BadAlloc, BadWindow, Display, Window, XCloseDisplay, XDefaultScreen,
XOpenDisplay, XRootWindow, XStoreName,
Display, Window, XCloseDisplay, XDefaultScreen, XOpenDisplay, XRootWindow,
XStoreName,
};

use crate::config::DELIM;
Expand Down Expand Up @@ -125,12 +125,7 @@ fn writestatus() {
SCREEN = XDefaultScreen(DPY);
ROOT = XRootWindow(DPY, SCREEN);
let s = CString::new(STATUSSTR[0].clone()).unwrap();
eprintln!("updating status to `{s:?}`");
let ret = XStoreName(DPY, ROOT, s.as_ptr());
#[allow(non_upper_case_globals)]
if matches!(ret as u8, BadAlloc | BadWindow) {
eprintln!("storing name failed");
}
XStoreName(DPY, ROOT, s.as_ptr());
XCloseDisplay(DPY);
}
}
Expand Down

0 comments on commit 53f89ed

Please sign in to comment.