diff --git a/src/linux/advanced-scene-switcher-nix.cpp b/src/linux/advanced-scene-switcher-nix.cpp index 88028756..3815fdb0 100644 --- a/src/linux/advanced-scene-switcher-nix.cpp +++ b/src/linux/advanced-scene-switcher-nix.cpp @@ -303,7 +303,6 @@ bool isInFocus(const QString &exeToCheck) return (equals || matches); } - int secondsSinceLastInput() { time_t idle_time; diff --git a/src/osx/advanced-scene-switcher-osx.mm b/src/osx/advanced-scene-switcher-osx.mm index 31a13010..729c359a 100644 --- a/src/osx/advanced-scene-switcher-osx.mm +++ b/src/osx/advanced-scene-switcher-osx.mm @@ -45,14 +45,14 @@ void GetCurrentWindowTitle(string &title) } } -pair getCursorPos() { - pair pos(0, 0); - CGEventRef event = CGEventCreate(NULL); - CGPoint cursorPos = CGEventGetLocation(event); - CFRelease(event); - pos.first = cursorPos.x; - pos.second = cursorPos.y; - return pos; +pair getCursorPos() { + pair pos(0, 0); + CGEventRef event = CGEventCreate(NULL); + CGPoint cursorPos = CGEventGetLocation(event); + CFRelease(event); + pos.first = cursorPos.x; + pos.second = cursorPos.y; + return pos; } bool isFullscreen() { @@ -76,12 +76,12 @@ bool isFullscreen() { // Get the window size and position AXUIElementCopyAttributeValue( frontMostWindow, kAXSizeAttribute, (CFTypeRef *)&temp); - AXValueGetValue(temp, kAXValueTypeCGSize, &windowSize); + AXValueGetValue(temp, kAXValueTypeCGSize, &windowSize); CFRelease(temp); AXUIElementCopyAttributeValue( frontMostWindow, kAXPositionAttribute, (CFTypeRef *)&temp); - AXValueGetValue(temp, kAXValueTypeCGPoint, &windowPosition); + AXValueGetValue(temp, kAXValueTypeCGPoint, &windowPosition); CFRelease(temp); CGRect screenBound = CGDisplayBounds(CGMainDisplayID()); @@ -118,7 +118,7 @@ void GetProcessList(QStringList& list) NSString *name = app.localizedName; if (!name) continue; - + const char *str = name.UTF8String; if (str && *str) list << (str);