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 /sway/debug-tree.c | |
parent | Fix issue with incorrectly rejiggered workspaces (diff) | |
download | sway-606d322bc20af217da7d015fc8527f4cb7e2a418.tar.gz sway-606d322bc20af217da7d015fc8527f4cb7e2a418.tar.zst sway-606d322bc20af217da7d015fc8527f4cb7e2a418.zip |
Container coordiantes/sizes are floating point
Diffstat (limited to 'sway/debug-tree.c')
-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, | |||
34 | struct sway_container *focus, int x, int y) { | 34 | struct sway_container *focus, int x, int y) { |
35 | int text_width, text_height; | 35 | int text_width, text_height; |
36 | get_text_size(cairo, "monospace", &text_width, &text_height, | 36 | get_text_size(cairo, "monospace", &text_width, &text_height, |
37 | 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d", | 37 | 1, false, "%s id:%zd '%s' %s %.fx%.f@%.f,%.f", |
38 | container_type_to_str(container->type), container->id, container->name, | 38 | container_type_to_str(container->type), container->id, container->name, |
39 | layout_to_str(container->layout), | 39 | layout_to_str(container->layout), |
40 | container->width, container->height, container->x, container->y); | 40 | container->width, container->height, container->x, container->y); |
@@ -62,7 +62,7 @@ static int draw_container(cairo_t *cairo, struct sway_container *container, | |||
62 | if (focus == container) { | 62 | if (focus == container) { |
63 | cairo_set_source_u32(cairo, 0x0000FFFF); | 63 | cairo_set_source_u32(cairo, 0x0000FFFF); |
64 | } | 64 | } |
65 | pango_printf(cairo, "monospace", 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d", | 65 | pango_printf(cairo, "monospace", 1, false, "%s id:%zd '%s' %s %.fx%.f@%.f,%.f", |
66 | container_type_to_str(container->type), container->id, container->name, | 66 | container_type_to_str(container->type), container->id, container->name, |
67 | layout_to_str(container->layout), | 67 | layout_to_str(container->layout), |
68 | container->width, container->height, container->x, container->y); | 68 | container->width, container->height, container->x, container->y); |