mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
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:
parent
31a4cddde3
commit
dd74b7f747
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue