aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:19:06 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-06 16:19:06 -0400
commit606d322bc20af217da7d015fc8527f4cb7e2a418 (patch)
tree03b13662f5db61f52d2a7fb4a99b71d5f480a77e
parentdf0d57b91660913659ba032fcb188b2d65e5c689 (diff)
downloadsway-606d322bc20af217da7d015fc8527f4cb7e2a418.zip
sway-606d322bc20af217da7d015fc8527f4cb7e2a418.tar.gz
sway-606d322bc20af217da7d015fc8527f4cb7e2a418.tar.bz2
Container coordiantes/sizes are floating point
-rw-r--r--sway/debug-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/debug-tree.c b/sway/debug-tree.c
index d803d07..ae0a186 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);