Rewrite of resize command to make it more sane

This commit is contained in:
Luminarys 2015-08-20 21:37:59 -05:00
parent c9935507f2
commit f589731f29
5 changed files with 60 additions and 47 deletions

View file

@ -142,8 +142,8 @@ static void container_log(const swayc_t *c) {
c->layout == L_STACKED ? "Stacked|":
c->layout == L_FLOATING ? "Floating|":
"Unknown|");
fprintf(stderr, "w:%d|h:%d|", c->width, c->height);
fprintf(stderr, "x:%d|y:%d|", c->x, c->y);
fprintf(stderr, "w:%f|h:%f|", c->width, c->height);
fprintf(stderr, "x:%f|y:%f|", c->x, c->y);
fprintf(stderr, "vis:%c|", c->visible?'t':'f');
fprintf(stderr, "name:%.16s|", c->name);
fprintf(stderr, "children:%d\n",c->children?c->children->length:0);