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? ...@@ -320,15 +320,18 @@ FIXME: Do we need this?
if (X->xselectionrequest.target == serverTARGETS) 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, XChangeProperty (nxagentDisplay,
X->xselectionrequest.requestor, X->xselectionrequest.requestor,
X->xselectionrequest.property, X->xselectionrequest.property,
XInternAtom(nxagentDisplay, "ATOM", 0), XInternAtom(nxagentDisplay, "ATOM", 0),
sizeof(Atom)*8, sizeof(Atom)*8,
PropModeReplace, PropModeReplace,
(unsigned char*)&xa_STRING, (unsigned char*)xa_STRING,
1); 3);
eventSelection.property = X->xselectionrequest.property; 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