Commit 2161fa2b authored by Ulrich Sibiller's avatar Ulrich Sibiller

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."
parent 6f5e483c
...@@ -725,7 +725,7 @@ void nxagentRequestSelection(XEvent *X) ...@@ -725,7 +725,7 @@ void nxagentRequestSelection(XEvent *X)
* FIXME: these must be external Atoms! * FIXME: these must be external Atoms!
*/ */
Atom targets[] = {XA_STRING}; long targets[] = {XA_STRING};
int numTargets = 1; int numTargets = 1;
#ifdef DEBUG #ifdef DEBUG
...@@ -743,7 +743,7 @@ void nxagentRequestSelection(XEvent *X) ...@@ -743,7 +743,7 @@ void nxagentRequestSelection(XEvent *X)
X->xselectionrequest.requestor, X->xselectionrequest.requestor,
X->xselectionrequest.property, X->xselectionrequest.property,
XInternAtom(nxagentDisplay, "ATOM", 0), XInternAtom(nxagentDisplay, "ATOM", 0),
sizeof(Atom)*8, 32,
PropModeReplace, PropModeReplace,
(unsigned char*)&targets, (unsigned char*)&targets,
numTargets); numTargets);
......
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