refactor(workspaces): scroll output aware

This commit is contained in:
Alex
2019-03-18 14:44:07 +01:00
parent 1ccf372f8e
commit 22cddc5e26
6 changed files with 46 additions and 59 deletions

View File

@ -67,8 +67,10 @@ void waybar::Client::handleGlobalRemove(void* data,
{
auto o = static_cast<waybar::Client *>(data);
for (auto it = o->bars.begin(); it != o->bars.end(); ++it) {
if ((**it).wl_name == name) {
if ((*it)->wl_name == name) {
auto output_name = (*it)->output_name;
o->bars.erase(it);
std::cout << "Bar removed from output: " + output_name << std::endl;
break;
}
}