update code style and fix end

This commit is contained in:
vcaesar 2018-07-30 00:01:10 +08:00
parent 409c2361f3
commit b6c5583f19

View File

@ -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);
}