1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix wrong default cursor icon

This commit is contained in:
Kirill Chibisov 2019-11-02 14:34:07 +03:00 committed by Christian Duerr
parent 356e418636
commit 4dd327f0ae

View file

@ -155,7 +155,8 @@ impl Window {
.or_else(|_| create_gl_window(window_builder, &event_loop, true, logical))?; .or_else(|_| create_gl_window(window_builder, &event_loop, true, logical))?;
// Text cursor // Text cursor
windowed_context.window().set_cursor_icon(CursorIcon::Text); let current_mouse_cursor = CursorIcon::Text;
windowed_context.window().set_cursor_icon(current_mouse_cursor);
// Set OpenGL symbol loader. This call MUST be after window.make_current on windows. // Set OpenGL symbol loader. This call MUST be after window.make_current on windows.
gl::load_with(|symbol| windowed_context.get_proc_address(symbol) as *const _); gl::load_with(|symbol| windowed_context.get_proc_address(symbol) as *const _);
@ -170,11 +171,7 @@ impl Window {
} }
} }
Ok(Window { Ok(Window { current_mouse_cursor, mouse_visible: true, windowed_context })
current_mouse_cursor: CursorIcon::Default,
mouse_visible: true,
windowed_context,
})
} }
pub fn set_inner_size(&mut self, size: LogicalSize) { pub fn set_inner_size(&mut self, size: LogicalSize) {