From a3e675def62ef420ac33370b02a80a12ac76f8c1 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Sat, 16 Jul 2022 21:14:00 -0700 Subject: [PATCH] set to non-blocking --- src/modules/tray_icon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());