Skip to content

Commit

Permalink
Fix error when setting anchors with 0 dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
ammgws committed Aug 1, 2021
1 parent 6388a49 commit 35b6f15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ int main(int argc, char *argv[]) {
assert(state.layer_surface);
zwlr_layer_surface_v1_add_listener(
state.layer_surface, &layer_surface_listener, &state);
zwlr_layer_surface_v1_set_size(state.layer_surface, 1, 1);
zwlr_layer_surface_v1_set_anchor(state.layer_surface, anchor);
zwlr_layer_surface_v1_set_margin(state.layer_surface,
margin, margin, margin, margin);
Expand Down

0 comments on commit 35b6f15

Please sign in to comment.