diff --git a/src/wl_window.c b/src/wl_window.c index a7b48441..6d490843 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -1913,6 +1913,12 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window) if (window->wl.idleInhibitor) zwp_idle_inhibitor_v1_destroy(window->wl.idleInhibitor); + if (window->wl.relativePointer) + zwp_relative_pointer_v1_destroy(window->wl.relativePointer); + + if (window->wl.lockedPointer) + zwp_locked_pointer_v1_destroy(window->wl.lockedPointer); + if (window->context.destroy) window->context.destroy(window);