diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2015-11-22 04:02:19 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2015-11-22 04:02:19 -0300 |
commit | 13310ee7dce177a24252970f607c08f3d658e676 (patch) | |
tree | 225d8c3fff3f033cdd2584e408b19aade31affba /src/safe_x11/event.rs | |
parent | 5da38341bc54f24c8cad41f1b63405d8cc955fe7 (diff) | |
download | dotwm-13310ee7dce177a24252970f607c08f3d658e676.tar.gz |
Add socket functionality.
Something simple, but it works pretty well. The mapping between the strings that
comes from the socket and functions, modifiers, keys, etc. needs some rewrite
because now there's a manual mapping.
The autostart file shows some functionality on how it will work. Since the
next_xevent is ticking on 1s, it's preferible to make the writes on the
socket all together, otherwise will pass 1 sec between two calls.
Diffstat (limited to 'src/safe_x11/event.rs')
-rw-r--r-- | src/safe_x11/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/safe_x11/event.rs b/src/safe_x11/event.rs index 2519bad..8a4bc32 100644 --- a/src/safe_x11/event.rs +++ b/src/safe_x11/event.rs @@ -26,7 +26,7 @@ pub fn x11_fd(display: *mut Display) -> c_int { pub fn next_xevent(display: *mut Display, fd: c_int) -> XEvent { unsafe { let mut last_event: XEvent = uninitialized(); - let retval = select_next_event(display, fd, &mut last_event) as i32; + select_next_event(display, fd, &mut last_event) as i32; last_event } } |