summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index cd64f87..27c1a46 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -21,7 +21,6 @@ use x11::xlib;
use x11::xlib::XEvent;
use x11::keysym;
-use std::os::unix::io::AsRawFd;
use std::io::{Read,Write};
use unix_socket::UnixListener;
@@ -46,13 +45,12 @@ fn main() {
add_binding(&mut dotwm, &mut bindings, keysym::XK_q, xlib::Mod4Mask | xlib::ShiftMask, quit_dotwm, &[]);
let listener = UnixListener::bind("./dotwm.sock").unwrap();
- let socket_fd = listener.as_raw_fd();
exec_cmd("./autostart", &[]).unwrap();
// Main loop
loop {
- let event = unsafe { select_event(dotwm.display, x11_fd, socket_fd, &listener) };
+ let event = unsafe { select_event(dotwm.display, x11_fd, &listener) };
match event {
Event::Key(mut e, true) => {
let keysym = unsafe { xlib::XLookupKeysym(&mut e, 0) as u32 };