layer surface configure: Don't resize unless it needs to be resized
1 files changed, 5 insertions(+), 3 deletions(-) M main.c
M main.c => main.c +5-3
@@ 302,9 302,11 @@ handle_global_remove(void *data, struct wl_registry *registry, uint32_t name) {} void layer_surface_configure(void *data, struct zwlr_layer_surface_v1 *surface, uint32_t serial, uint32_t w, uint32_t h) { keyboard.w = w; keyboard.h = h; kbd_resize(&keyboard); if (w != keyboard.w || h != keyboard.h) { keyboard.w = w; keyboard.h = h; kbd_resize(&keyboard); } zwlr_layer_surface_v1_ack_configure(surface, serial); }