summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/workspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index 8ff89132..6a68233e 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -39,7 +39,7 @@ bool workspace_by_name(swayc_t *view, void *data) {
39 39
40bool workspace_destroy(swayc_t *workspace) { 40bool workspace_destroy(swayc_t *workspace) {
41 //Dont destroy if there are children 41 //Dont destroy if there are children
42 if(workspace->children->length) { 42 if (workspace->children->length) {
43 return false; 43 return false;
44 } 44 }
45 sway_log(L_DEBUG, "Workspace: Destroying workspace '%s'", workspace->name); 45 sway_log(L_DEBUG, "Workspace: Destroying workspace '%s'", workspace->name);
@@ -64,8 +64,8 @@ swayc_t *workspace_find_by_name(const char* name) {
64void workspace_switch(swayc_t *workspace) { 64void workspace_switch(swayc_t *workspace) {
65 if (active_workspace) { 65 if (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(strcmp(active_workspace->name, workspace->name) == 0) { 67 if (active_workspace == workspace) {
68 return; //Dont do anything if they are the same workspace 68 return;
69 } 69 }
70 uint32_t mask = 1; 70 uint32_t mask = 1;
71 // set all c_views in the old workspace to the invisible mask 71 // set all c_views in the old workspace to the invisible mask