mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
X11 implementation of clipboard pasting.
This commit is contained in:
@@ -1381,6 +1381,19 @@ static void processSingleEvent(void)
|
||||
break;
|
||||
}
|
||||
|
||||
case SelectionNotify:
|
||||
{
|
||||
// Selection notification triggered by the XConvertSelection
|
||||
|
||||
// Check if the notification property matches the request
|
||||
if (event.xselection.property != _glfwLibrary.X11.selection.request)
|
||||
_glfwLibrary.X11.selection.converted = 2;
|
||||
else // It was successful
|
||||
_glfwLibrary.X11.selection.converted = 1;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// Was the window destroyed?
|
||||
case DestroyNotify:
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user