Merge pull request #2223 from Anakael/pr/shchemel/fix-class-priority

This commit is contained in:
Alex 2023-06-09 08:36:34 +02:00 committed by GitHub
commit 9f38631c7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,7 +278,7 @@ Gtk::Button &Workspaces::addButton(const Json::Value &node) {
} }
std::string Workspaces::getIcon(const std::string &name, const Json::Value &node) { std::string Workspaces::getIcon(const std::string &name, const Json::Value &node) {
std::vector<std::string> keys = {name, "urgent", "focused", "visible", "default"}; std::vector<std::string> keys = {"urgent", "focused", name, "visible", "default"};
for (auto const &key : keys) { for (auto const &key : keys) {
if (key == "focused" || key == "visible" || key == "urgent") { if (key == "focused" || key == "visible" || key == "urgent") {
if (config_["format-icons"][key].isString() && node[key].asBool()) { if (config_["format-icons"][key].isString() && node[key].asBool()) {