aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-15 20:31:23 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-15 20:31:23 +0000
commit304f8d698225bbc518c50cbca0beddbe22c79963 (patch)
tree02e8a948280fbce5ac32a598d24a676fd92f937d
parentmain: bug: -t requires an argument (diff)
wayland: output_mode: update PPI
Since we now use the width/height values from output_mode(), we also need to update the PPI here.
-rw-r--r--wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 830f114d..67757679 100644
--- a/wayland.c
+++ b/wayland.c
@@ -155,6 +155,7 @@ output_mode(void *data, struct wl_output *wl_output, uint32_t flags,
mon->refresh = (float)refresh / 1000;
mon->width_px = width;
mon->height_px = height;
+ output_update_ppi(mon);
}
static void