diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-09-19 21:37:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 21:37:37 +0000 |
commit | bd6e5a99bed6acb331dfd0917dd50bf8f2cf7de1 (patch) | |
tree | 9768ffaa61382691a582b8e8e6b25dab91556f77 | |
parent | d387ebe1d7fe9f9fe9d840039aba68efffe5a233 (diff) | |
download | alacritty-bd6e5a99bed6acb331dfd0917dd50bf8f2cf7de1.tar.gz alacritty-bd6e5a99bed6acb331dfd0917dd50bf8f2cf7de1.zip |
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.
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/window.rs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c78cc7e..4c8d4702 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Inverse/Selection color is now modelled after XTerm/VTE instead of URxvt to improve consistency - First click on unfocused Alacritty windows is no longer ignored on platforms other than macOS +### Fixed + +- Windows started as unfocused now show the hollow cursor if the setting is enabled + ## Version 0.2.0 ### Added diff --git a/src/window.rs b/src/window.rs index 51a42232..ede29716 100644 --- a/src/window.rs +++ b/src/window.rs @@ -249,7 +249,7 @@ impl Window { event_loop, window, cursor_visible: true, - is_focused: true, + is_focused: false, }; window.run_os_extensions(); |