diff options
Diffstat (limited to 'sway/debug-tree.c')
-rw-r--r-- | sway/debug-tree.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sway/debug-tree.c b/sway/debug-tree.c index 2ed3c087..973c6d88 100644 --- a/sway/debug-tree.c +++ b/sway/debug-tree.c | |||
@@ -43,10 +43,10 @@ static char *get_string(struct sway_node *node) { | |||
43 | case N_OUTPUT: | 43 | case N_OUTPUT: |
44 | snprintf(buffer, 512, "N_OUTPUT id:%zd '%s' %dx%d@%d,%d", node->id, | 44 | snprintf(buffer, 512, "N_OUTPUT id:%zd '%s' %dx%d@%d,%d", node->id, |
45 | node->sway_output->wlr_output->name, | 45 | node->sway_output->wlr_output->name, |
46 | node->sway_output->wlr_output->width, | 46 | node->sway_output->width, |
47 | node->sway_output->wlr_output->height, | 47 | node->sway_output->height, |
48 | node->sway_output->wlr_output->lx, | 48 | node->sway_output->lx, |
49 | node->sway_output->wlr_output->ly); | 49 | node->sway_output->ly); |
50 | break; | 50 | break; |
51 | case N_WORKSPACE: | 51 | case N_WORKSPACE: |
52 | snprintf(buffer, 512, "N_WORKSPACE id:%zd '%s' %s %dx%d@%.f,%.f", | 52 | snprintf(buffer, 512, "N_WORKSPACE id:%zd '%s' %s %dx%d@%.f,%.f", |
@@ -128,11 +128,11 @@ void update_debug_tree() { | |||
128 | int width = 640, height = 480; | 128 | int width = 640, height = 480; |
129 | for (int i = 0; i < root->outputs->length; ++i) { | 129 | for (int i = 0; i < root->outputs->length; ++i) { |
130 | struct sway_output *output = root->outputs->items[i]; | 130 | struct sway_output *output = root->outputs->items[i]; |
131 | if (output->wlr_output->width > width) { | 131 | if (output->width > width) { |
132 | width = output->wlr_output->width; | 132 | width = output->width; |
133 | } | 133 | } |
134 | if (output->wlr_output->height > height) { | 134 | if (output->height > height) { |
135 | height = output->wlr_output->height; | 135 | height = output->height; |
136 | } | 136 | } |
137 | } | 137 | } |
138 | cairo_surface_t *surface = | 138 | cairo_surface_t *surface = |