Add ability to choose focus state to window title switcher

This commit is contained in:
Myned
2020-05-21 00:34:22 -04:00
parent a4de8c0c59
commit e4b640903d
6 changed files with 85 additions and 23 deletions

View File

@@ -174,6 +174,17 @@ void GetWindowList(vector<string> &windows)
}
}
// Overloaded
void GetWindowList(QStringList &windows)
{
windows.clear();
for (size_t i = 0; i < getTopLevelWindows().size(); ++i){
if (GetWindowTitle(i) != "")
windows << QString::fromStdString(GetWindowTitle(i));
}
}
void GetCurrentWindowTitle(string &title)
{
if (!ewmhIsSupported()) {