From dd74b7f7474733e560d89b503a9d8f2207ca5cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 10 Jul 2020 11:42:26 +0200 Subject: [PATCH] bar/wayland: don't initialize backend->scale = 1 This causes the first call to update_size() to exit early, and thus we never configure the initial state. --- bar/wayland.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bar/wayland.c b/bar/wayland.c index 2b21b6c..fc3d28a 100644 --- a/bar/wayland.c +++ b/bar/wayland.c @@ -134,11 +134,7 @@ seat_destroy(struct seat *seat) void * bar_backend_wayland_new(void) { - struct wayland_backend *backend = malloc(sizeof(struct wayland_backend)); - *backend = (struct wayland_backend){ - .scale = 1, - }; - return backend; + return calloc(1, sizeof(struct wayland_backend)); } static void