mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 02:08:33 +00:00
update code style and fix end
This commit is contained in:
parent
409c2361f3
commit
b6c5583f19
1 changed files with 2 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ void min_window(uintptr pid, bool state, uintptr isHwnd){
|
|||
#if defined(IS_MACOSX)
|
||||
// return 0;
|
||||
AXUIElementRef axID = AXUIElementCreateApplication(pid);
|
||||
|
||||
AXUIElementSetAttributeValue(axID, kAXMinimizedAttribute,
|
||||
state ? kCFBooleanTrue : kCFBooleanFalse);
|
||||
#elif defined(USE_X11)
|
||||
|
|
@ -88,7 +89,7 @@ void min_window(uintptr pid, bool state, uintptr isHwnd){
|
|||
#elif defined(IS_WINDOWS)
|
||||
if (isHwnd == 0) {
|
||||
HWND hwnd = GetHwndByPId(pid);
|
||||
win_min(hwnd, state)
|
||||
win_min(hwnd, state);
|
||||
} else {
|
||||
win_min((HWND)pid, state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue