pub async fn stop_flashing_window(
hwnd: HWND,
target_desktop: Option<Desktop>,
) -> Result<(), Box<dyn Error>>
Expand description
Stop a window from flashing orange in the Windows taskbar.
§Timeline
- Stop the flashing, but the taskbar icon might remain visible even when the window isn’t on that virtual desktop.
- Hide the window so that the taskbar icon is removed.
- Show the window again, this will move the window to the current virtual desktop.
- Move the window to the target desktop.
§Cancellation
If the program exits before this future completes or is canceled then some windows might remain hidden and never become visible again.