aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ports/glutin/window.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs
index 7fcaefeacad..e5c52576400 100644
--- a/ports/glutin/window.rs
+++ b/ports/glutin/window.rs
@@ -27,7 +27,7 @@ use compositing::windowing::{MouseWindowEvent, WindowNavigateMsg};
#[cfg(feature = "window")]
use geom::point::{Point2D, TypedPoint2D};
#[cfg(feature = "window")]
-use glutin::{ElementState, Event, MouseButton, MouseCursor, VirtualKeyCode};
+use glutin::{ElementState, Event, MouseButton, VirtualKeyCode};
#[cfg(feature = "window")]
use msg::constellation_msg::{KeyState, CONTROL, SHIFT, ALT};
#[cfg(feature = "window")]
@@ -511,6 +511,8 @@ impl WindowMethods for Window {
#[cfg(target_os="linux")]
fn set_cursor(&self, c: Cursor) {
+ use glutin::MouseCursor;
+
let glutin_cursor = match c {
Cursor::NoCursor => MouseCursor::NoneCursor,
Cursor::DefaultCursor => MouseCursor::Default,