Commit d10646e3 authored by dimbor's avatar dimbor

nxagent client-mode: fix clipboard problem (eterbug #4332) by Danil Pleshakov

parent 0509526f
......@@ -320,15 +320,18 @@ FIXME: Do we need this?
if (X->xselectionrequest.target == serverTARGETS)
{
Atom xa_STRING = XA_STRING;
Atom xa_STRING[3];
xa_STRING[0] = XA_STRING;
xa_STRING[1] = serverUTF8_STRING;
xa_STRING[2] = serverTEXT;
XChangeProperty (nxagentDisplay,
X->xselectionrequest.requestor,
X->xselectionrequest.property,
XInternAtom(nxagentDisplay, "ATOM", 0),
sizeof(Atom)*8,
PropModeReplace,
(unsigned char*)&xa_STRING,
1);
(unsigned char*)xa_STRING,
3);
eventSelection.property = X->xselectionrequest.property;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment