mirror of
https://github.com/alacritty/alacritty.git
synced 2026-12-04 18:34:41 +03:00
Show hollow cursor for windows starting unfocused
Alacritty made the assumption that every window started as focused and because of that the hollow cursor wouldn't show up for windows which are launched without focus. Since even the initial focus should be reported as a focus event by winit, this could be easily fixed just setting the default window state to unfocused instead of focused. This fixes #1563.
This commit is contained in:
1 parent
d387ebe1d7
commit
bd6e5a99be
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -249,7 +249,7 @@ impl Window {
|
||||
event_loop,
|
||||
window,
|
||||
cursor_visible: true,
|
||||
is_focused: true,
|
||||
is_focused: false,
|
||||
};
|
||||
|
||||
window.run_os_extensions();
|
||||
|
||||
Reference in new issue
Block a user