Some reformatting with new X11 SelectionRequest event.

This commit is contained in:
Ralph Eastwood 2011-09-22 12:09:01 +01:00
parent 9f41e5b67a
commit a2ffa80e82

View File

@ -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;
}