mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Fix wrong default cursor icon
This commit is contained in:
parent
356e418636
commit
4dd327f0ae
1 changed files with 3 additions and 6 deletions
|
@ -155,7 +155,8 @@ impl Window {
|
|||
.or_else(|_| create_gl_window(window_builder, &event_loop, true, logical))?;
|
||||
|
||||
// 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.
|
||||
gl::load_with(|symbol| windowed_context.get_proc_address(symbol) as *const _);
|
||||
|
@ -170,11 +171,7 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
Ok(Window {
|
||||
current_mouse_cursor: CursorIcon::Default,
|
||||
mouse_visible: true,
|
||||
windowed_context,
|
||||
})
|
||||
Ok(Window { current_mouse_cursor, mouse_visible: true, windowed_context })
|
||||
}
|
||||
|
||||
pub fn set_inner_size(&mut self, size: LogicalSize) {
|
||||
|
|
Loading…
Reference in a new issue