aboutsummaryrefslogtreecommitdiff
path: root/src/dotwm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotwm.rs')
-rw-r--r--src/dotwm.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotwm.rs b/src/dotwm.rs
index 2781ae8..666deff 100644
--- a/src/dotwm.rs
+++ b/src/dotwm.rs
@@ -9,7 +9,6 @@ use x11::xlib::{
};
use safe_x11::{
- open_display,
close_display,
atom,
};
@@ -79,7 +78,7 @@ pub struct DotWM {
impl DotWM {
/// Create a state of the Dot Window Manager
pub fn new() -> DotWM {
- let d = open_display("").unwrap();
+ let d = unsafe { xlib::XOpenDisplay(0x0 as *const i8) };
unsafe { xlib::XSetErrorHandler(Some(error_handler)) };
// Add substructure notify mask