Skip to content

Commit

Permalink
refactor(windows): Modify the flashing behavior of UserAttentionType:…
Browse files Browse the repository at this point in the history
…:Informational in multiple windows (#931)

* refactor(windows): Modify the flashing behavior of UserAttentionType::Informational in multiple windows

* refactor(windows): add change markdown
  • Loading branch information
muwoo authored Jun 3, 2024
1 parent ab792db commit 3bbddc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/refactor-attention-type-informational.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "patch"
---

**Breaking Change**: Replace `UserAttentionType::Informational => (FLASHW_TRAY | FLASHW_TIMERNOFG, 0)` with `UserAttentionType::Informational => (FLASHW_TRAY, 3)`
2 changes: 1 addition & 1 deletion src/platform_impl/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ impl Window {
let (flags, count) = request_type
.map(|ty| match ty {
UserAttentionType::Critical => (FLASHW_ALL | FLASHW_TIMERNOFG, u32::MAX),
UserAttentionType::Informational => (FLASHW_TRAY | FLASHW_TIMERNOFG, 0),
UserAttentionType::Informational => (FLASHW_TRAY, 3),
})
.unwrap_or((FLASHW_STOP, 0));

Expand Down

0 comments on commit 3bbddc6

Please sign in to comment.