diff options
author | 2015-08-10 20:13:24 -0700 | |
---|---|---|
committer | 2015-08-10 20:13:24 -0700 | |
commit | 25a3aa6ed675c70a7cb83aca0ec5eccae23e42fa (patch) | |
tree | 41a39c63ff375b81272bcfcec7719e510359d858 | |
parent | silly mistake + style (diff) | |
download | sway-25a3aa6ed675c70a7cb83aca0ec5eccae23e42fa.tar.gz sway-25a3aa6ed675c70a7cb83aca0ec5eccae23e42fa.tar.zst sway-25a3aa6ed675c70a7cb83aca0ec5eccae23e42fa.zip |
small change
-rw-r--r-- | sway/workspace.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/workspace.c b/sway/workspace.c index 6a68233e..01779723 100644 --- a/sway/workspace.c +++ b/sway/workspace.c | |||
@@ -62,11 +62,8 @@ swayc_t *workspace_find_by_name(const char* name) { | |||
62 | } | 62 | } |
63 | 63 | ||
64 | void workspace_switch(swayc_t *workspace) { | 64 | void workspace_switch(swayc_t *workspace) { |
65 | if (active_workspace) { | 65 | if (workspace != active_workspace && active_workspace) { |
66 | sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name); | 66 | sway_log(L_DEBUG, "workspace: changing from '%s' to '%s'", active_workspace->name, workspace->name); |
67 | if (active_workspace == workspace) { | ||
68 | return; | ||
69 | } | ||
70 | uint32_t mask = 1; | 67 | uint32_t mask = 1; |
71 | // set all c_views in the old workspace to the invisible mask | 68 | // set all c_views in the old workspace to the invisible mask |
72 | container_map(active_workspace, set_mask, &mask); | 69 | container_map(active_workspace, set_mask, &mask); |