mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
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:
parent
f1f869acf7
commit
f269a6af97
@ -448,6 +448,7 @@ extern void (*handleSelectionRequest)(XEvent*);
|
||||
void (*getSelectionRequestHandler(void))(XEvent*);
|
||||
void setSelectionRequestHandler(void (*handler)(XEvent*));
|
||||
Display* getGLFWDisplay(void);
|
||||
Window getGLFWHelperWindow(void);
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -3367,5 +3367,8 @@ Display* getGLFWDisplay(void) {
|
||||
return _glfw.x11.display;
|
||||
}
|
||||
|
||||
#endif // _GLFW_X11
|
||||
Window getGLFWHelperWindow(void) {
|
||||
return _glfw.x11.helperWindowHandle;
|
||||
}
|
||||
|
||||
#endif // _GLFW_X11
|
||||
|
Loading…
Reference in New Issue
Block a user