void _glfwPlatformTerminate(void) { if (_glfw.x11.cursor) { XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); _glfw.x11.cursor = (Cursor) 0; } free(_glfw.x11.clipboardString); if (_glfw.x11.im) { XCloseIM(_glfw.x11.im); _glfw.x11.im = NULL; } if (_glfw.x11.display) { XCloseDisplay(_glfw.x11.display); _glfw.x11.display = NULL; } // NOTE: This needs to be done after XCloseDisplay, as libGL registers // cleanup callbacks that get called by it _glfwTerminateContextAPI(); _glfwTerminateJoysticks(); }
void _glfwPlatformTerminate(void) { if (_glfw.x11.cursor) { XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); _glfw.x11.cursor = (Cursor) 0; } free(_glfw.x11.clipboardString); if (_glfw.x11.im) { XCloseIM(_glfw.x11.im); _glfw.x11.im = NULL; } _glfwTerminateJoysticks(); _glfwTerminateContextAPI(); if (_glfw.x11.display) { XCloseDisplay(_glfw.x11.display); _glfw.x11.display = NULL; } }
void _glfwPlatformTerminate(void) { _glfwTerminateContextAPI(); _glfwTerminateJoysticks(); mir_connection_release(_glfw.mir.connection); }
void _glfwPlatformTerminate(void) { _glfwTerminateContextAPI(); _glfwTerminateJoysticks(); _glfwDeleteEventQueue(_glfw.mir.event_queue); pthread_mutex_destroy(&_glfw.mir.event_mutex); mir_connection_release(_glfw.mir.connection); }
void _glfwPlatformTerminate(void) { if (_glfw.x11.cursor) { XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); _glfw.x11.cursor = (Cursor) 0; } free(_glfw.x11.selection.string); _glfwTerminateJoysticks(); _glfwTerminateContextAPI(); terminateDisplay(); }
void _glfwPlatformTerminate(void) { _glfwUnregisterWindowClass(); // Restore previous foreground lock timeout system setting SystemParametersInfoW(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(_glfw.win32.foregroundLockTimeout), SPIF_SENDCHANGE); free(_glfw.win32.clipboardString); _glfwTerminateJoysticks(); _glfwTerminateContextAPI(); terminateLibraries(); }
void _glfwPlatformTerminate(void) { _glfwTerminateContextAPI(); if (_glfw.wl.cursorTheme) wl_cursor_theme_destroy(_glfw.wl.cursorTheme); if (_glfw.wl.cursorSurface) wl_surface_destroy(_glfw.wl.cursorSurface); if (_glfw.wl.registry) wl_registry_destroy(_glfw.wl.registry); if (_glfw.wl.display) wl_display_flush(_glfw.wl.display); if (_glfw.wl.display) wl_display_disconnect(_glfw.wl.display); }
void _glfwPlatformTerminate(void) { if (_glfw.win32.classAtom) { UnregisterClass(_GLFW_WNDCLASSNAME, GetModuleHandle(NULL)); _glfw.win32.classAtom = 0; } // Restore previous foreground lock timeout system setting SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, UIntToPtr(_glfw.win32.foregroundLockTimeout), SPIF_SENDCHANGE); free(_glfw.win32.clipboardString); _glfwTerminateJoysticks(); _glfwTerminateContextAPI(); terminateLibraries(); }