diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-17 11:37:19 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-17 11:37:19 -0400 |
commit | b48e8d1b178f2c713579dc532ff4be6edfccc5bc (patch) | |
tree | f9da3981625cd2235961f8efee7c4f3a94649241 /sway/workspace.c | |
parent | be2635daa6b041de4dfb24952e96779a505b1b09 (diff) | |
parent | c9ce8bf1bd0f4cfb459bcb7d3ec45429c0a81293 (diff) | |
download | sway-b48e8d1b178f2c713579dc532ff4be6edfccc5bc.tar.xz |
Merge pull request #54 from Luminarys/master
Added in basic floating support
Diffstat (limited to 'sway/workspace.c')
-rw-r--r-- | sway/workspace.c | 13 |
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 */ |