diff options
author | Neil Stewart <40719351+madcdevelop@users.noreply.github.com> | 2024-09-30 12:07:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 19:07:12 +0000 |
commit | c899208e15c8987480912794d66358ea2581fc39 (patch) | |
tree | 7b3f509558fc2506ad327882b7f6e89985d11639 | |
parent | 4a7728bf7fac06a35f27f6c4f31e0d9214e5152b (diff) | |
download | alacritty-c899208e15c8987480912794d66358ea2581fc39.tar.gz alacritty-c899208e15c8987480912794d66358ea2581fc39.zip |
Fix app icon in alt+tab view on Windows
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty/src/display/window.rs | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 946f48ea..4d64bdf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its - Config import changes not being live reloaded - Cursor color requests with default cursor colors - Fullwidth semantic escape characters +- Windows app icon now displays properly in old alt+tab on Windows ## 0.13.2 diff --git a/alacritty/src/display/window.rs b/alacritty/src/display/window.rs index 2bb59b2c..1427dc75 100644 --- a/alacritty/src/display/window.rs +++ b/alacritty/src/display/window.rs @@ -30,7 +30,7 @@ use winit::dpi::{PhysicalPosition, PhysicalSize}; use winit::event_loop::ActiveEventLoop; use winit::monitor::MonitorHandle; #[cfg(windows)] -use winit::platform::windows::IconExtWindows; +use winit::platform::windows::{IconExtWindows, WindowAttributesExtWindows}; use winit::raw_window_handle::{HasWindowHandle, RawWindowHandle}; use winit::window::{ CursorIcon, Fullscreen, ImePurpose, Theme, UserAttentionType, Window as WinitWindow, @@ -302,7 +302,8 @@ impl Window { WinitWindow::default_attributes() .with_decorations(window_config.decorations != Decorations::None) - .with_window_icon(icon.ok()) + .with_window_icon(icon.as_ref().ok().cloned()) + .with_taskbar_icon(icon.ok()) } #[cfg(target_os = "macos")] |