Autoformat
This commit is contained in:
parent
c8810c8683
commit
42d1bfb882
1 changed files with 24 additions and 24 deletions
|
@ -183,8 +183,7 @@ fn open_notification_context_menu(window: HWND) {
|
|||
winuser::GetCursorPos(&mut cursor_position);
|
||||
|
||||
winuser::SetForegroundWindow(window);
|
||||
let flags = winuser::TPM_RIGHTALIGN | winuser::TPM_BOTTOMALIGN |
|
||||
winuser::TPM_RIGHTBUTTON;
|
||||
let flags = winuser::TPM_RIGHTALIGN | winuser::TPM_BOTTOMALIGN | winuser::TPM_RIGHTBUTTON;
|
||||
winuser::TrackPopupMenu(context_menu,
|
||||
flags,
|
||||
cursor_position.x,
|
||||
|
@ -225,7 +224,8 @@ pub fn run() {
|
|||
unsafe {
|
||||
status = winuser::GetMessageW(&mut message, std::ptr::null_mut(), 0, 0);
|
||||
if status == -1 {
|
||||
panic!("GetMessageW error: {}", winapi::um::errhandlingapi::GetLastError());
|
||||
panic!("GetMessageW error: {}",
|
||||
winapi::um::errhandlingapi::GetLastError());
|
||||
}
|
||||
if status == 0 {
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue