diff --git a/src/modules/tray_icon.rs b/src/modules/tray_icon.rs index 9143009..fdfb15c 100644 --- a/src/modules/tray_icon.rs +++ b/src/modules/tray_icon.rs @@ -76,7 +76,7 @@ impl TrayIcon { pub fn process_tray_messages(&self) { unsafe { let mut msg = MaybeUninit::uninit(); - let bret = winuser::GetMessageA(msg.as_mut_ptr(), 0 as _, 0, 0); + let bret = winuser::PeekMessageA(msg.as_mut_ptr(), 0 as _, 0, 0, 1); if bret > 0 { winuser::TranslateMessage(msg.as_ptr());