Function stop_flashing_window

Source
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

  1. Stop the flashing, but the taskbar icon might remain visible even when the window isn’t on that virtual desktop.
  2. Hide the window so that the taskbar icon is removed.
  3. Show the window again, this will move the window to the current virtual desktop.
  4. 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.