summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Taiyu <taiyu.len@gmail.com>2015-08-10 20:09:47 -0700
committerLibravatar Taiyu <taiyu.len@gmail.com>2015-08-10 20:09:47 -0700
commit2ac3535afebe4f31aad96b3f8d7a932af5ad56f6 (patch)
tree6a7cb6f2333400044cf71c06df51c26e8d0586bd
parentdestroys empty workspace + minor bugfixes (diff)
downloadsway-2ac3535afebe4f31aad96b3f8d7a932af5ad56f6.tar.gz
sway-2ac3535afebe4f31aad96b3f8d7a932af5ad56f6.tar.zst
sway-2ac3535afebe4f31aad96b3f8d7a932af5ad56f6.zip
silly mistake + style
-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