diff options
author | Kirill Chibisov <wchibisovkirill@gmail.com> | 2019-11-02 14:34:07 +0300 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-11-02 12:34:07 +0100 |
commit | 4dd327f0aec53d4501601281b796b1d7dda9a5d3 (patch) | |
tree | 9221babcbf00f61d153344453910f6d2eea5d934 | |
parent | 356e4186366d11ab0bcb5f25923a92cb3960bc3c (diff) | |
download | alacritty-4dd327f0aec53d4501601281b796b1d7dda9a5d3.tar.gz alacritty-4dd327f0aec53d4501601281b796b1d7dda9a5d3.zip |
Fix wrong default cursor icon
-rw-r--r-- | alacritty/src/window.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/alacritty/src/window.rs b/alacritty/src/window.rs index 9ea411af..0559cbc7 100644 --- a/alacritty/src/window.rs +++ b/alacritty/src/window.rs @@ -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) { |