diff --git a/include/GLFW/glfw3native.h b/include/GLFW/glfw3native.h index d4daa1f5..4cbe5c45 100644 --- a/include/GLFW/glfw3native.h +++ b/include/GLFW/glfw3native.h @@ -448,6 +448,7 @@ extern void (*handleSelectionRequest)(XEvent*); void (*getSelectionRequestHandler(void))(XEvent*); void setSelectionRequestHandler(void (*handler)(XEvent*)); Display* getGLFWDisplay(void); +Window getGLFWHelperWindow(void); #endif diff --git a/src/x11_window.c b/src/x11_window.c index 787004d1..69569514 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -3367,5 +3367,8 @@ Display* getGLFWDisplay(void) { return _glfw.x11.display; } -#endif // _GLFW_X11 +Window getGLFWHelperWindow(void) { + return _glfw.x11.helperWindowHandle; +} +#endif // _GLFW_X11