aboutsummaryrefslogtreecommitdiffstats
path: root/sway/debug-tree.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 12:46:33 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 12:46:33 -0400
commitcd6e3182fa55dd8ab3a8a167e854a5446baf39c7 (patch)
tree5dca00425dafb84085c5fe9febc2978a65c022a0 /sway/debug-tree.c
parentAddress @emersion's comments (diff)
downloadsway-cd6e3182fa55dd8ab3a8a167e854a5446baf39c7.tar.gz
sway-cd6e3182fa55dd8ab3a8a167e854a5446baf39c7.tar.zst
sway-cd6e3182fa55dd8ab3a8a167e854a5446baf39c7.zip
Fix issues @orestisf1993 raised
Diffstat (limited to 'sway/debug-tree.c')
-rw-r--r--sway/debug-tree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/debug-tree.c b/sway/debug-tree.c
index 08ee3585..aea6a8b1 100644
--- a/sway/debug-tree.c
+++ b/sway/debug-tree.c
@@ -34,12 +34,12 @@ 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 '%s' %s %dx%d@%d,%d", 37 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d",
38 container_type_to_str(container->type), 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);
41 cairo_rectangle(cairo, x, y, text_width, text_height); 41 cairo_rectangle(cairo, x, y, text_width, text_height);
42 cairo_set_source_u32(cairo, 0xFFFFFFFF); 42 cairo_set_source_u32(cairo, 0xFFFFFFE0);
43 cairo_fill(cairo); 43 cairo_fill(cairo);
44 cairo_move_to(cairo, x, y); 44 cairo_move_to(cairo, x, y);
45 if (focus == container) { 45 if (focus == container) {
@@ -47,8 +47,8 @@ static int draw_container(cairo_t *cairo, struct sway_container *container,
47 } else { 47 } else {
48 cairo_set_source_u32(cairo, 0x000000FF); 48 cairo_set_source_u32(cairo, 0x000000FF);
49 } 49 }
50 pango_printf(cairo, "monospace", 1, false, "%s '%s' %s %dx%d@%d,%d", 50 pango_printf(cairo, "monospace", 1, false, "%s id:%zd '%s' %s %dx%d@%d,%d",
51 container_type_to_str(container->type), container->name, 51 container_type_to_str(container->type), container->id, container->name,
52 layout_to_str(container->layout), 52 layout_to_str(container->layout),
53 container->width, container->height, container->x, container->y); 53 container->width, container->height, container->x, container->y);
54 int height = text_height; 54 int height = text_height;