fix: update selmon

This commit is contained in:
Raphael Robatsch 2021-10-31 17:50:59 +01:00
parent 69722bae48
commit 3409d45a62

View file

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