From 16b5948c95e0c2e07c54a849c837e77068159fab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Apr 2024 14:36:08 +0530 Subject: [PATCH] ... --- glfw/wl_decor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/wl_decor.c b/glfw/wl_decor.c index d6326d541..b8f46f8dc 100644 --- a/glfw/wl_decor.c +++ b/glfw/wl_decor.c @@ -142,6 +142,7 @@ glfw_wl_unload_decorations_library(DECOR_LIB_HANDLE h_) { if (h_) { DecorLibState *h = (DecorLibState*)h_; if (h->libdecor) { libdecor_unref(h->libdecor); } + free(h); } if (libdecor_funcs.libdecor_handle) { dlclose(libdecor_funcs.libdecor_handle); libdecor_funcs.libdecor_handle = NULL; @@ -154,6 +155,7 @@ glfw_wl_dispatch_decor_events(void) { // TODO: change this to just call while (g_main_context_iteration(NULL, FALSE)); when using the gtk plugin // will require a patch to libdecor. The libdecor API currently has no way to either tell what plugin // is being used or to just dispatch non-Wayland events. + // https://gitlab.freedesktop.org/libdecor/libdecor/-/issues/70 return libdecor_dispatch(((DecorLibState*)_glfw.wl.decor)->libdecor, 0); }