From 588e6150d22fd64d2dd07c647177eac1962590d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 20 Jul 2020 17:30:20 +0200 Subject: [PATCH] bar/wayland: do *not* set backend->scale in xdg_output_handle_done() This is done by update_size(). Setting it in xdg_output_handle_done() causes update_size() to do an early exit, and thus we end up never actually configuring the surface. We also never instantiate a pixman image, which led to a hard crash at startup when the user had configured a specific output to use. --- bar/wayland.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bar/wayland.c b/bar/wayland.c index 9ac26ba..7d87558 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -452,7 +452,6 @@ xdg_output_handle_done(void *data, struct zxdg_output_v1 *xdg_output) { /* User specified a monitor, and this is one */ backend->monitor = mon; - backend->scale = mon->scale; } }