From bd6e5a99bed6acb331dfd0917dd50bf8f2cf7de1 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 19 Sep 2018 21:37:37 +0000 Subject: 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. --- src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit