fix: update selmon

This commit is contained in:
Raphael Robatsch 2021-10-31 17:50:59 +01:00
parent 69722bae48
commit 3409d45a62
1 changed files with 5 additions and 0 deletions

View File

@ -288,6 +288,11 @@ static void handleStdin(const std::string& line)
uint32_t selected;
stream >> selected;
mon->bar->setSelected(selected);
if (selected) {
selmon = &*mon;
} else if (selmon == &*mon) {
selmon = nullptr;
}
} else if (command == "tags") {
uint32_t occupied, tags, clientTags, urgent;
stream >> occupied >> tags >> clientTags >> urgent;