mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-02 12:44:01 +02:00
...
This commit is contained in:
2
glfw/wl_decor.c
vendored
2
glfw/wl_decor.c
vendored
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user