aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-06 16:36:46 +0100
committeremersion <contact@emersion.fr>2017-12-06 16:36:46 +0100
commitbf2b58eb6db5a59f08a3b0a3ab5e43e93711bf51 (patch)
tree0ab3324e338bbb932844efb2d5696ba06d9d6d8b /rootston
parent314e80e8db425fb5ea15c70df4edfcf154fcef43 (diff)
Add wlr_output_set_scale
Fixes #465
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/output.c b/rootston/output.c
index bf684f2f..d0f4a378 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -314,10 +314,10 @@ void output_add_notify(struct wl_listener *listener, void *data) {
if (output_config->mode.width) {
set_mode(wlr_output, output_config);
}
- wlr_output->scale = output_config->scale;
+ wlr_output_set_scale(wlr_output, output_config->scale);
wlr_output_transform(wlr_output, output_config->transform);
- wlr_output_layout_add(desktop->layout,
- wlr_output, output_config->x, output_config->y);
+ wlr_output_layout_add(desktop->layout, wlr_output, output_config->x,
+ output_config->y);
} else {
wlr_output_layout_add_auto(desktop->layout, wlr_output);
}