Add ability to get the clipboard target window

This allows users to claim the selection independently in a way that's
compatible with the handlers from GLFW.
This commit is contained in:
Alex Sanchez-Stern 2024-10-03 16:01:51 -07:00
parent f1f869acf7
commit f269a6af97
2 changed files with 5 additions and 1 deletions

View File

@ -448,6 +448,7 @@ extern void (*handleSelectionRequest)(XEvent*);
void (*getSelectionRequestHandler(void))(XEvent*); void (*getSelectionRequestHandler(void))(XEvent*);
void setSelectionRequestHandler(void (*handler)(XEvent*)); void setSelectionRequestHandler(void (*handler)(XEvent*));
Display* getGLFWDisplay(void); Display* getGLFWDisplay(void);
Window getGLFWHelperWindow(void);
#endif #endif

View File

@ -3367,5 +3367,8 @@ Display* getGLFWDisplay(void) {
return _glfw.x11.display; return _glfw.x11.display;
} }
#endif // _GLFW_X11 Window getGLFWHelperWindow(void) {
return _glfw.x11.helperWindowHandle;
}
#endif // _GLFW_X11