Fix for #2646
This commit is contained in:
parent
9ac27de7d8
commit
375a38a489
|
@ -311,7 +311,8 @@ void Workspaces::on_workspace_created(std::string const &payload) {
|
||||||
void Workspaces::on_workspace_moved(std::string const &payload) {
|
void Workspaces::on_workspace_moved(std::string const &payload) {
|
||||||
std::string workspace = payload.substr(0, payload.find(','));
|
std::string workspace = payload.substr(0, payload.find(','));
|
||||||
std::string new_output = payload.substr(payload.find(',') + 1);
|
std::string new_output = payload.substr(payload.find(',') + 1);
|
||||||
if (bar_.output->name == new_output) { // TODO: implement this better
|
bool should_show = show_special() || ! workspace.starts_with("special");
|
||||||
|
if (should_show && bar_.output->name == new_output) { // TODO: implement this better
|
||||||
const Json::Value workspaces_json = gIPC->getSocket1JsonReply("workspaces");
|
const Json::Value workspaces_json = gIPC->getSocket1JsonReply("workspaces");
|
||||||
for (Json::Value workspace_json : workspaces_json) {
|
for (Json::Value workspace_json : workspaces_json) {
|
||||||
std::string name = workspace_json["name"].asString();
|
std::string name = workspace_json["name"].asString();
|
||||||
|
|
Loading…
Reference in New Issue