silly mistake + style

master
Taiyu 9 years ago
parent beabb12d63
commit 2ac3535afe

@ -64,8 +64,8 @@ swayc_t *workspace_find_by_name(const char* name) {
void workspace_switch(swayc_t *workspace) {
if (active_workspace) {
sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name);
if(strcmp(active_workspace->name, workspace->name) == 0) {
return; //Dont do anything if they are the same workspace
if (active_workspace == workspace) {
return;
}
uint32_t mask = 1;
// set all c_views in the old workspace to the invisible mask

Loading…
Cancel
Save