Skip to content

Commit

Permalink
fix(weg): no restoring native taskbar on close
Browse files Browse the repository at this point in the history
  • Loading branch information
eythaann committed Aug 29, 2024
1 parent 362465e commit c24aeec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/background/seelen_weg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit c24aeec

Please sign in to comment.