diff --git a/src/executable-switch.cpp b/src/executable-switch.cpp index 9a31ae4f..181a94ee 100644 --- a/src/executable-switch.cpp +++ b/src/executable-switch.cpp @@ -16,7 +16,6 @@ int SceneSwitcher::executableFindByData(const QString& exe) return -1; } - void SceneSwitcher::on_executables_currentRowChanged(int idx) { if (loading) @@ -44,7 +43,6 @@ void SceneSwitcher::on_executables_currentRowChanged(int idx) } } - void SceneSwitcher::on_executableAdd_clicked() { QString sceneName = ui->executableScenes->currentText(); @@ -93,7 +91,6 @@ void SceneSwitcher::on_executableAdd_clicked() } } - void SceneSwitcher::on_executableRemove_clicked() { QListWidgetItem* item = ui->executables->currentItem(); diff --git a/src/headers/switcher-data-structs.hpp b/src/headers/switcher-data-structs.hpp index 11f50e0a..371c9d05 100644 --- a/src/headers/switcher-data-structs.hpp +++ b/src/headers/switcher-data-structs.hpp @@ -230,7 +230,7 @@ struct MediaSwitch { typedef enum { NO_SWITCH = 0, SWITCH = 1, RANDOM_SWITCH = 2 } NoMatch; /******************************************************************************** - * SwitcherData + * SwitcherData ********************************************************************************/ struct SwitcherData { thread th; diff --git a/src/osx/advanced-scene-switcher-osx.mm b/src/osx/advanced-scene-switcher-osx.mm index f3ed34b1..5972287f 100644 --- a/src/osx/advanced-scene-switcher-osx.mm +++ b/src/osx/advanced-scene-switcher-osx.mm @@ -45,7 +45,8 @@ void GetCurrentWindowTitle(string &title) } } -pair getCursorPos() { +pair getCursorPos() +{ pair pos(0, 0); CGEventRef event = CGEventCreate(NULL); CGPoint cursorPos = CGEventGetLocation(event); @@ -53,9 +54,10 @@ pair getCursorPos() { pos.first = cursorPos.x; pos.second = cursorPos.y; return pos; - } +} -bool isFullscreen() { +bool isFullscreen() +{ @autoreleasepool { AXValueRef temp; CGSize windowSize; diff --git a/src/window-title-switch.cpp b/src/window-title-switch.cpp index 48efdbf9..0b65a66b 100644 --- a/src/window-title-switch.cpp +++ b/src/window-title-switch.cpp @@ -106,9 +106,6 @@ void SceneSwitcher::on_remove_clicked() delete item; } - - - void SceneSwitcher::on_ignoreWindowsAdd_clicked() { QString windowName = ui->ignoreWindowsWindows->currentText(); @@ -177,9 +174,6 @@ int SceneSwitcher::FindByData(const QString& window) return idx; } - - - int SceneSwitcher::IgnoreWindowsFindByData(const QString& window) { int count = ui->ignoreWindows->count(); @@ -200,7 +194,6 @@ int SceneSwitcher::IgnoreWindowsFindByData(const QString& window) return idx; } - void SceneSwitcher::on_switches_currentRowChanged(int idx) { if (loading) @@ -229,7 +222,6 @@ void SceneSwitcher::on_switches_currentRowChanged(int idx) } } - void SceneSwitcher::on_ignoreWindows_currentRowChanged(int idx) { if (loading)