summaryrefslogtreecommitdiff
path: root/sway/workspace.c
diff options
context:
space:
mode:
authorLuminarys <[email protected]>2015-08-17 00:38:34 -0500
committerLuminarys <[email protected]>2015-08-17 00:38:34 -0500
commit05f969074e39c5adeb5d7390d8255b83cf351866 (patch)
tree3f31fc1f7f4d7c31620f012adfcb2e629b2d2042 /sway/workspace.c
parentbe2635daa6b041de4dfb24952e96779a505b1b09 (diff)
Added in basic floating toggling
Diffstat (limited to 'sway/workspace.c')
-rw-r--r--sway/workspace.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/workspace.c b/sway/workspace.c
index 4db75f48..df646445 100644
--- a/sway/workspace.c
+++ b/sway/workspace.c
@@ -255,5 +255,18 @@ void layout_log(const swayc_t *c, int depth) {
for (i = 0; i < depth; ++i) fputc(' ', stderr);
fprintf(stderr,")\n");
}
+ if (c->type == C_WORKSPACE) {
+ e = c->floating?c->floating->length:0;
+ for (i = 0; i < depth; ++i) fputc(' ', stderr);
+ if (e) {
+ for (i = 0; i < depth; ++i) fputc(' ', stderr);
+ fprintf(stderr,"(\n");
+ for (i = 0; i < e; ++i) {
+ layout_log(c->floating->items[i], depth + 1);
+ }
+ for (i = 0; i < depth; ++i) fputc(' ', stderr);
+ fprintf(stderr,")\n");
+ }
+ }
}
/* XXX:DEBUG:XXX */