Patch-Source: https://github.com/ammgws/wshowkeys/commit/35b6f15bd088511c28bcb3f2e36cbc4eb3621588 From 35b6f15bd088511c28bcb3f2e36cbc4eb3621588 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sun, 1 Aug 2021 18:35:57 +0900 Subject: [PATCH] Fix error when setting anchors with 0 dimension --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index f979e24..cda6e37 100644 --- a/main.c +++ b/main.c @@ -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);