mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Added in basic floating toggling
This commit is contained in:
parent
be2635daa6
commit
05f969074e
6 changed files with 176 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue