Skip to content

Commit

Permalink
Only destroy swaybar surface via ipc when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
vilhalmer authored and ddevault committed Feb 27, 2020
1 parent 2045ac3 commit 920d85d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swaybar/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,10 @@ static bool handle_barconfig_update(struct swaybar *bar, const char *payload,
ipc_get_workspaces(bar);
}

bool moving_layer = strcmp(oldcfg->mode, newcfg->mode) != 0;

free_config(oldcfg);
determine_bar_visibility(bar, true);
determine_bar_visibility(bar, moving_layer);
return true;
}

Expand Down

0 comments on commit 920d85d

Please sign in to comment.