Merge pull request #3199 from orestisf1993/workspace_show

workspace_show: remove redundant if
This commit is contained in:
Ingo Bürk 2018-03-24 18:39:37 +01:00 committed by GitHub
commit 16a707cd19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -397,11 +397,9 @@ void workspace_show(Con *workspace) {
* focused) are skipped, see bug #868. */
if (current && !con_is_internal(current)) {
FREE(previous_workspace_name);
if (current) {
previous_workspace_name = sstrdup(current->name);
DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
}
}
workspace_reassign_sticky(workspace);