aboutsummaryrefslogtreecommitdiff
path: root/rootston/seat.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-15 01:00:03 +0100
committeremersion <contact@emersion.fr>2017-12-15 01:00:03 +0100
commit51db087210b14201589701c49adca80e846a84b9 (patch)
tree6ad2e387a4f6cda32c40c40f68c3929318245006 /rootston/seat.c
parent23fb663ea4eaff436d9bfab7f74cdd298fac44c5 (diff)
Introduce fractional scaling
Diffstat (limited to 'rootston/seat.c')
-rw-r--r--rootston/seat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/rootston/seat.c b/rootston/seat.c
index 8a581157..ce0f1374 100644
--- a/rootston/seat.c
+++ b/rootston/seat.c
@@ -459,11 +459,10 @@ void roots_seat_configure_xcursor(struct roots_seat *seat) {
struct roots_output *output;
wl_list_for_each(output, &seat->input->server->desktop->outputs, link) {
- if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager,
- output->wlr_output->scale)) {
+ float scale = output->wlr_output->scale;
+ if (wlr_xcursor_manager_load(seat->cursor->xcursor_manager, scale)) {
wlr_log(L_ERROR, "Cannot load xcursor theme for output '%s' "
- "with scale %d", output->wlr_output->name,
- output->wlr_output->scale);
+ "with scale %f", output->wlr_output->name, scale);
}
}