diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-11-15 21:48:43 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2019-11-15 21:48:43 +0100 |
commit | 2161fa2bd0f838be525d136a726aef088bc69292 (patch) | |
tree | cb74c64d0330c1d9520218b9df8618f78612a5e5 /nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | |
parent | 6f5e483cd528f305d8e03e0672d3a1bccd75a004 (diff) | |
download | nx-libs-2161fa2bd0f838be525d136a726aef088bc69292.tar.gz nx-libs-2161fa2bd0f838be525d136a726aef088bc69292.tar.bz2 nx-libs-2161fa2bd0f838be525d136a726aef088bc69292.zip |
Clipboard.c: improve XChangeProperty code
The previously used "Atom" type was confusing. Clarify this by
writing the code as requested in the manpage of XChangeProperty:
"If the specified format is 8, the property data must be a char array.
If the specified format is 16, the property data must be a short
array. If the specified format is 32, the property data must be a
long array."
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Clipboard.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 5f7bdab4e..10d98fe88 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -725,7 +725,7 @@ void nxagentRequestSelection(XEvent *X) * FIXME: these must be external Atoms! */ - Atom targets[] = {XA_STRING}; + long targets[] = {XA_STRING}; int numTargets = 1; #ifdef DEBUG @@ -743,7 +743,7 @@ void nxagentRequestSelection(XEvent *X) X->xselectionrequest.requestor, X->xselectionrequest.property, XInternAtom(nxagentDisplay, "ATOM", 0), - sizeof(Atom)*8, + 32, PropModeReplace, (unsigned char*)&targets, numTargets); |