mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +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:
|
case SelectionRequest:
|
||||||
{
|
{
|
||||||
|
// Selection request triggered by someone wanting data from the
|
||||||
|
// X11 clipboard
|
||||||
XSelectionRequestEvent *request = &event.xselectionrequest;
|
XSelectionRequestEvent *request = &event.xselectionrequest;
|
||||||
|
|
||||||
// Construct the response
|
// Construct the response
|
||||||
XEvent response;
|
XEvent response;
|
||||||
response.xselection.property = _glfwSelectionRequest(request);
|
response.xselection.property = _glfwSelectionRequest(request);
|
||||||
@ -1406,8 +1409,10 @@ static void processSingleEvent(void)
|
|||||||
response.xselection.selection = request->selection;
|
response.xselection.selection = request->selection;
|
||||||
response.xselection.target = request->target;
|
response.xselection.target = request->target;
|
||||||
response.xselection.time = request->time;
|
response.xselection.time = request->time;
|
||||||
|
|
||||||
// Send off the event
|
// Send off the event
|
||||||
XSendEvent(_glfwLibrary.X11.display, request->requestor, 0, 0, &response);
|
XSendEvent(_glfwLibrary.X11.display, request->requestor, 0, 0, &response);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user