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.
This commit is contained in:
Daniel Eklöf 2020-07-10 11:42:26 +02:00
parent 31a4cddde3
commit dd74b7f747
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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