diff options
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) { | |||
142 | c->layout == L_STACKED ? "Stacked|": | 142 | c->layout == L_STACKED ? "Stacked|": |
143 | c->layout == L_FLOATING ? "Floating|": | 143 | c->layout == L_FLOATING ? "Floating|": |
144 | "Unknown|"); | 144 | "Unknown|"); |
145 | fprintf(stderr, "w:%d|h:%d|", c->width, c->height); | 145 | fprintf(stderr, "w:%f|h:%f|", c->width, c->height); |
146 | fprintf(stderr, "x:%d|y:%d|", c->x, c->y); | 146 | fprintf(stderr, "x:%f|y:%f|", c->x, c->y); |
147 | fprintf(stderr, "vis:%c|", c->visible?'t':'f'); | 147 | fprintf(stderr, "vis:%c|", c->visible?'t':'f'); |
148 | fprintf(stderr, "name:%.16s|", c->name); | 148 | fprintf(stderr, "name:%.16s|", c->name); |
149 | fprintf(stderr, "children:%d\n",c->children?c->children->length:0); | 149 | fprintf(stderr, "children:%d\n",c->children?c->children->length:0); |
150 | } | 150 | } |
151 | void layout_log(const swayc_t *c, int depth) { | 151 | void layout_log(const swayc_t *c, int depth) { |
152 | if (L_DEBUG > v) return; | ||
152 | int i, d; | 153 | int i, d; |
153 | int e = c->children ? c->children->length : 0; | 154 | int e = c->children ? c->children->length : 0; |
154 | container_log(c); | 155 | container_log(c); |