summaryrefslogtreecommitdiff
path: root/src/event.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event.rs')
-rw-r--r--src/event.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event.rs b/src/event.rs
index 768e37a..055a94b 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -62,7 +62,7 @@ impl fmt::Debug for Event {
Event::Drag(ev) => format!("Drag({})", XEvent::from(ev).get_type()),
Event::Generic(ev) => format!("Generic({})", XEvent::from(ev).get_type()),
Event::Enter(ev) => format!("Enter({})", XEvent::from(ev).get_type()),
- Event::Leave(ev) => format!("Enter({})", XEvent::from(ev).get_type()),
+ Event::Leave(ev) => format!("Leave({})", XEvent::from(ev).get_type()),
Event::Create(ev) => format!("Create({})", XEvent::from(ev).get_type()),
Event::Destroy(ev) => format!("Destroy({})", XEvent::from(ev).get_type()),
Event::Unmap(ev) => format!("Unmap({})", XEvent::from(ev).get_type()),
@@ -125,8 +125,8 @@ pub fn next_event(display: *mut Display) -> Event {
18 => Event::Unmap(XUnmapEvent::from(ev)),
19 => Event::Map(XMapEvent::from(ev)),
22 => Event::Configure(XConfigureEvent::from(ev)),
- _ => {
- // println!("Unknown event {}", e);
+ e => {
+ println!("Unknown event {}", e);
Event::NoEvent
},
}