diff options
author | Drew DeVault <[email protected]> | 2015-08-21 07:12:05 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-21 07:12:05 -0400 |
commit | 464b49eda26f6a518bda39a8d07e1d9b0f498897 (patch) | |
tree | 7d0c55221b3028c2843da88b41029abac864b4a5 /sway/log.c | |
parent | cc5713aee6525fd1783c1a9280079f7e9abcd882 (diff) | |
parent | 96ab21b2766096bdb42d79a0169d42b9ff00e2fb (diff) |
Merge pull request #101 from Luminarys/master
Added in basic resizing command.
Diffstat (limited to 'sway/log.c')
-rw-r--r-- | sway/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -142,13 +142,14 @@ 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); } void layout_log(const swayc_t *c, int depth) { + if (L_DEBUG > v) return; int i, d; int e = c->children ? c->children->length : 0; container_log(c); |