Bring a covered window to the front too when an Arena champ select starts (#118)
A window already shown was left alone, so one open behind Chrome stayed hidden at the start of a champ select. Every window state now gets the same raise, still without activation and once per entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #122.
This commit is contained in:
1 parent
1cb7b2b11d
commit
1e44baa157
2 files changed
+3
-6
No files matched your search
@@ -319,14 +319,11 @@ pub fn reopen(hwnd: HWND) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Brings a minimized window, or one hidden in the notification area, back above the other
|
||||
/// windows while the foreground app keeps the keyboard. A window already shown is left alone.
|
||||
/// Brings the window above the other windows, whether minimized, hidden in the notification area
|
||||
/// or only covered, while the foreground app keeps the keyboard.
|
||||
pub fn reveal(hwnd: HWND) {
|
||||
unsafe {
|
||||
let iconic = IsIconic(hwnd).as_bool();
|
||||
if IsWindowVisible(hwnd).as_bool() && !iconic {
|
||||
return;
|
||||
}
|
||||
if let Some(tray) = installed_tray(hwnd) {
|
||||
tray.remove_icon();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user