Merge pull request #3199 from orestisf1993/workspace_show
workspace_show: remove redundant if
This commit is contained in:
commit
16a707cd19
|
@ -397,10 +397,8 @@ void workspace_show(Con *workspace) {
|
||||||
* focused) are skipped, see bug #868. */
|
* focused) are skipped, see bug #868. */
|
||||||
if (current && !con_is_internal(current)) {
|
if (current && !con_is_internal(current)) {
|
||||||
FREE(previous_workspace_name);
|
FREE(previous_workspace_name);
|
||||||
if (current) {
|
previous_workspace_name = sstrdup(current->name);
|
||||||
previous_workspace_name = sstrdup(current->name);
|
DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
|
||||||
DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
workspace_reassign_sticky(workspace);
|
workspace_reassign_sticky(workspace);
|
||||||
|
|
Loading…
Reference in New Issue