Skip to content

Commit

Permalink
fix(wayland): initalize done copies to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jtheoof committed Jan 5, 2020
1 parent 0c5e458 commit 65cefc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ bool wayland_init(struct swappy_state *state) {
state->wl = g_new(struct swappy_wayland, 1);

state->wl->display = wl_display_connect(NULL);
state->wl->n_done = 0;
if (state->wl->display == NULL) {
g_warning("cannot connect to wayland display");
return false;
Expand Down

0 comments on commit 65cefc1

Please sign in to comment.