diff --git a/changelog.md b/changelog.md index 8a20d4b0..69b509cf 100644 --- a/changelog.md +++ b/changelog.md @@ -29,6 +29,7 @@ - route no maintaining on cancel changes on settings window. - cancel button no working correctly after save the settings multiple times. - tray module no forcing tray overflow creating on startup. +- native taskbar not been restored on close. ## [1.9.10] ### features diff --git a/src/background/seelen_weg/mod.rs b/src/background/seelen_weg/mod.rs index 895cf6e7..fac3b89e 100644 --- a/src/background/seelen_weg/mod.rs +++ b/src/background/seelen_weg/mod.rs @@ -17,8 +17,8 @@ use win_screenshot::capture::capture_window; use windows::Win32::{ Foundation::{BOOL, HWND, LPARAM, RECT}, UI::WindowsAndMessaging::{ - EnumWindows, HWND_TOPMOST, SWP_NOACTIVATE, SW_HIDE, SW_SHOWNOACTIVATE, WS_EX_APPWINDOW, - WS_EX_NOACTIVATE, WS_EX_TOOLWINDOW, + EnumWindows, HWND_TOPMOST, SWP_NOACTIVATE, SW_HIDE, SW_SHOWNOACTIVATE, SW_SHOWNORMAL, + WS_EX_APPWINDOW, WS_EX_NOACTIVATE, WS_EX_TOOLWINDOW, }, }; @@ -415,7 +415,7 @@ impl SeelenWeg { pub fn show_taskbar() -> Result<()> { for hwnd in get_taskbars_handles()? { AppBarData::from_handle(hwnd).set_state(AppBarDataState::AlwaysOnTop); - WindowsApi::show_window(hwnd, SW_SHOWNOACTIVATE)?; + WindowsApi::show_window(hwnd, SW_SHOWNORMAL)?; } Ok(()) }