From 05f969074e39c5adeb5d7390d8255b83cf351866 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 17 Aug 2015 00:38:34 -0500 Subject: Added in basic floating toggling --- sway/workspace.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sway/workspace.c') 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 */ -- cgit v1.2.3