set to non-blocking
This commit is contained in:
parent
fdb60f6e00
commit
a3e675def6
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue