From e65e715129ddbefaf2ebb4b14a803b312632705e Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 14 Jun 2021 23:59:05 +0200 Subject: Clipboard.c: Fix: forward the correct type and format now stuff like xclip -o -t LENGTH works (if the owner offers that) --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'nx-X11') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index bb1656d7f..ba26f0915 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1774,7 +1774,7 @@ Bool nxagentCollectPropertyEventFromXServer(int resource) { ChangeWindowProperty(lastClients[index].windowPtr, lastClients[index].property, - lastClients[index].target, + nxagentRemoteToLocalAtom(atomReturnType), resultFormat, PropModeReplace, ulReturnItems, pszReturnData, 1); @@ -2043,12 +2043,11 @@ void handlePropertyTransferFromAgentToXserver(int index, XlibAtom property) /* Fill the property on the requestor with the requested data. */ /* The XChangeProperty source code reveals it will always return 1, no matter what, so no need to check the result */ - /* FIXME: better use the format returned by above request. */ XChangeProperty(nxagentDisplay, lastServers[index].requestor, lastServers[index].property, - lastServers[index].target, - 8, + nxagentLocalToRemoteAtom(atomReturnType), + resultFormat, PropModeReplace, pszReturnData, ulReturnItems); -- cgit v1.2.3