diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 16:19:06 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 16:19:06 -0400 |
commit | 606d322bc20af217da7d015fc8527f4cb7e2a418 (patch) | |
tree | 03b13662f5db61f52d2a7fb4a99b71d5f480a77e | |
parent | df0d57b91660913659ba032fcb188b2d65e5c689 (diff) | |
download | sway-606d322bc20af217da7d015fc8527f4cb7e2a418.tar.xz |
Container coordiantes/sizes are floating point
-rw-r--r-- | sway/debug-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/debug-tree.c b/sway/debug-tree.c index d803d07b..ae0a1869 100644 --- a/sway/debug-tree.c +++ b/sway/debug-tree.c @@ -34,7 +34,7 @@ static int draw_container(cairo_t *cairo, struct sway_container *container, struct sway_container *focus, int x, int y) { int text_width, text_height; get_text_size(cairo, "monospace", &text_width, &text_height, - 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d", + 1, false, "%s id:%zd '%s' %s %.fx%.f@%.f,%.f", container_type_to_str(container->type), container->id, container->name, layout_to_str(container->layout), container->width, container->height, container->x, container->y); @@ -62,7 +62,7 @@ static int draw_container(cairo_t *cairo, struct sway_container *container, if (focus == container) { cairo_set_source_u32(cairo, 0x0000FFFF); } - pango_printf(cairo, "monospace", 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d", + pango_printf(cairo, "monospace", 1, false, "%s id:%zd '%s' %s %.fx%.f@%.f,%.f", container_type_to_str(container->type), container->id, container->name, layout_to_str(container->layout), container->width, container->height, container->x, container->y); |