On út 15. září 2009, Alexey I. Froloff wrote:
> On Tue, Sep 15, 2009 at 02:23:50AM +0200, Carlos R. Mafra wrote:
> > 'data' is being cast to the proper type as specified in the man page,
> > and as far as I understand there is no problem in doing that
> > cast in 32 or 64-bit mode. So what is not true?
>
> This is array of long's and XChangeProperty() expects 32-bit
> words.  And long is 64-bit wide on 64-bit machines.
>

The patch is correct. XChangeProperty() really expects an array
of 64bit words on 64bit machines. Manual page says this:

"If the specified format is 32, the property data must be a _long_ array."

It is strange, but it really works this way.

IIRC I have sent similar patch to this list some time ago.

Vladimir


-- 
To unsubscribe, send mail to [email protected].

Reply via email to