diff --git a/src/window.rs b/src/window.rs index a50daf87..34a9c780 100644 --- a/src/window.rs +++ b/src/window.rs @@ -16,7 +16,7 @@ use std::fmt::{self, Display}; use std::ops::Deref; use gl; -use glutin::{self, EventsLoop, WindowBuilder, Event, CursorState, ControlFlow, ContextBuilder}; +use glutin::{self, EventsLoop, WindowBuilder, Event, MouseCursor, CursorState, ControlFlow, ContextBuilder}; use glutin::GlContext; /// Window errors @@ -195,6 +195,9 @@ impl Window { .with_vsync(true); let window = ::glutin::GlWindow::new(window, context, &event_loop)?; + // Text cursor + window.set_cursor(MouseCursor::Text); + // Set OpenGL symbol loader gl::load_with(|symbol| window.get_proc_address(symbol) as *const _);