mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Some reformatting with new X11 SelectionRequest event.
This commit is contained in:
parent
9f41e5b67a
commit
a2ffa80e82
@ -1396,7 +1396,10 @@ static void processSingleEvent(void)
|
||||
|
||||
case SelectionRequest:
|
||||
{
|
||||
// Selection request triggered by someone wanting data from the
|
||||
// X11 clipboard
|
||||
XSelectionRequestEvent *request = &event.xselectionrequest;
|
||||
|
||||
// Construct the response
|
||||
XEvent response;
|
||||
response.xselection.property = _glfwSelectionRequest(request);
|
||||
@ -1406,8 +1409,10 @@ static void processSingleEvent(void)
|
||||
response.xselection.selection = request->selection;
|
||||
response.xselection.target = request->target;
|
||||
response.xselection.time = request->time;
|
||||
|
||||
// Send off the event
|
||||
XSendEvent(_glfwLibrary.X11.display, request->requestor, 0, 0, &response);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user