mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 14:24:35 +00:00
Formatting.
This commit is contained in:
parent
ee2d036bbf
commit
82c5dfc30a
@ -677,18 +677,18 @@ static void handleSelectionRequest(XEvent* event)
|
|||||||
{
|
{
|
||||||
const XSelectionRequestEvent* request = &event->xselectionrequest;
|
const XSelectionRequestEvent* request = &event->xselectionrequest;
|
||||||
|
|
||||||
XEvent response;
|
XEvent reply;
|
||||||
memset(&response, 0, sizeof(response));
|
memset(&reply, 0, sizeof(reply));
|
||||||
|
|
||||||
response.xselection.property = writeTargetToProperty(request);
|
reply.xselection.property = writeTargetToProperty(request);
|
||||||
response.xselection.type = SelectionNotify;
|
reply.xselection.type = SelectionNotify;
|
||||||
response.xselection.display = request->display;
|
reply.xselection.display = request->display;
|
||||||
response.xselection.requestor = request->requestor;
|
reply.xselection.requestor = request->requestor;
|
||||||
response.xselection.selection = request->selection;
|
reply.xselection.selection = request->selection;
|
||||||
response.xselection.target = request->target;
|
reply.xselection.target = request->target;
|
||||||
response.xselection.time = request->time;
|
reply.xselection.time = request->time;
|
||||||
|
|
||||||
XSendEvent(_glfw.x11.display, request->requestor, False, 0, &response);
|
XSendEvent(_glfw.x11.display, request->requestor, False, 0, &reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pushSelectionToManager(_GLFWwindow* window)
|
static void pushSelectionToManager(_GLFWwindow* window)
|
||||||
@ -1598,9 +1598,9 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,
|
|||||||
sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS,
|
sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS,
|
||||||
0, 0, 0, 0, 0);
|
0, 0, 0, 0, 0);
|
||||||
|
|
||||||
// HACK: Poll with timeout for the required response instead of blocking
|
// HACK: Poll with timeout for the required reply instead of blocking
|
||||||
// This is done because some window managers (at least Unity,
|
// This is done because some window managers (at least Unity,
|
||||||
// Fluxbox and Xfwm) failed to send the required response
|
// Fluxbox and Xfwm) failed to send the required reply
|
||||||
// They have been fixed but broken versions are still in the wild
|
// They have been fixed but broken versions are still in the wild
|
||||||
// If you are affected by this and your window manager is NOT
|
// If you are affected by this and your window manager is NOT
|
||||||
// listed above, PLEASE report it to their and our issue trackers
|
// listed above, PLEASE report it to their and our issue trackers
|
||||||
|
Loading…
Reference in New Issue
Block a user