aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/wayland/events.rs
diff options
context:
space:
mode:
authorIvo Wetzel <ivo.wetzel@googlemail.com>2016-03-30 08:21:01 +0200
committerIvo Wetzel <ivo.wetzel@googlemail.com>2016-03-30 08:21:01 +0200
commit0e9fad5d2350467921af2d2e3ab0b26a1b749080 (patch)
tree06952222d0be79125f5cd2afca8226d21fc792bc /src/api/wayland/events.rs
parent1b7a3cd31febc38b4d0d39d06f99639469a5823d (diff)
parent89dd63b9ceac72a7ca274724d2b81033ddb5d4ed (diff)
downloadglutin-0e9fad5d2350467921af2d2e3ab0b26a1b749080.tar.gz
glutin-0e9fad5d2350467921af2d2e3ab0b26a1b749080.zip
Merge branch 'master' of github.com:tomaka/glutin into x11_window_size_constraints
Diffstat (limited to 'src/api/wayland/events.rs')
-rw-r--r--src/api/wayland/events.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/wayland/events.rs b/src/api/wayland/events.rs
index 5e0c3fd..92a0b95 100644
--- a/src/api/wayland/events.rs
+++ b/src/api/wayland/events.rs
@@ -52,7 +52,7 @@ pub fn translate_event(
if known_surfaces.contains(&surface) {
focuses.pointer_on = Some(surface);
focuses.pointer_at = Some((x, y));
- Some((GlutinEvent::MouseMoved((x as i32, y as i32)), surface))
+ Some((GlutinEvent::MouseMoved(x as i32, y as i32), surface))
} else {
None
}
@@ -65,7 +65,7 @@ pub fn translate_event(
WlPointerEvent::Motion(_, x, y) => {
if let Some(surface) = focuses.pointer_on {
focuses.pointer_at = Some((x, y));
- Some((GlutinEvent::MouseMoved((x as i32, y as i32)), surface))
+ Some((GlutinEvent::MouseMoved(x as i32, y as i32), surface))
} else {
None
}