1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix app icon in alt+tab view on Windows

This commit is contained in:
Neil Stewart 2024-09-30 12:07:12 -07:00 committed by GitHub
parent 4a7728bf7f
commit c899208e15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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")]