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::GetCursorPos(&mut cursor_position);
|
||||||
|
|
||||||
winuser::SetForegroundWindow(window);
|
winuser::SetForegroundWindow(window);
|
||||||
let flags = winuser::TPM_RIGHTALIGN | winuser::TPM_BOTTOMALIGN |
|
let flags = winuser::TPM_RIGHTALIGN | winuser::TPM_BOTTOMALIGN | winuser::TPM_RIGHTBUTTON;
|
||||||
winuser::TPM_RIGHTBUTTON;
|
|
||||||
winuser::TrackPopupMenu(context_menu,
|
winuser::TrackPopupMenu(context_menu,
|
||||||
flags,
|
flags,
|
||||||
cursor_position.x,
|
cursor_position.x,
|
||||||
|
@ -225,7 +224,8 @@ pub fn run() {
|
||||||
unsafe {
|
unsafe {
|
||||||
status = winuser::GetMessageW(&mut message, std::ptr::null_mut(), 0, 0);
|
status = winuser::GetMessageW(&mut message, std::ptr::null_mut(), 0, 0);
|
||||||
if status == -1 {
|
if status == -1 {
|
||||||
panic!("GetMessageW error: {}", winapi::um::errhandlingapi::GetLastError());
|
panic!("GetMessageW error: {}",
|
||||||
|
winapi::um::errhandlingapi::GetLastError());
|
||||||
}
|
}
|
||||||
if status == 0 {
|
if status == 0 {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue