summaryrefslogtreecommitdiffstats
path: root/sway/debug-tree.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-30 21:20:31 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commitacc2628c799170dea98380cda2237137137f182f (patch)
treeb28b186339b90b75a767b96c780f9a643ff70204 /sway/debug-tree.c
parentImplement type safe arguments and demote sway_container (diff)
downloadsway-acc2628c799170dea98380cda2237137137f182f.tar.gz
sway-acc2628c799170dea98380cda2237137137f182f.tar.zst
sway-acc2628c799170dea98380cda2237137137f182f.zip
Don't use wlr_output properties
These properties are before rotation.
Diffstat (limited to 'sway/debug-tree.c')
-rw-r--r--sway/debug-tree.c16
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 =