Hi all,

I am getting an annoying message (read the subject) with FLTK 1.1 and 1.3
(but not with 2.0) any time I select some text, I get this message many
times on the shell, however, the program runs well. In the file Fl_x.cxx,
the "case SelectionRequest" use the XChangeProperty. It is seems there is an
issue with the "format" argument. The parameters for this function can be
found in the following web page:

http://www.x.org/releases/X11R7.5/doc/man/man3/XChangeProperty.3.html

As you can see, the required "format" (I copy pasted this part bellow)
*format*Specifies whether the data should be viewed as a list of 8-bit,
16-bit, or 32-bit quantities. Possible values are 8, 16, and 32. This
information allows the X server to correctly perform byte-swap operations as
necessary. If the format is 16-bit or 32-bit, you must explicitly cast your
data pointer to an (unsigned char *) in the call to *XChangeProperty*.Then,
the value of "sizeof(Atom)*8", as written in Fl_x.cxx, should be one of the
above values. I checked the output of "sizeof(Atom)" and it is 8, therefore,
8 times 8 is 64, which is not supported by XChangeProperty yet. So I tried
1, 2 and 4, and all of them work well. I am using 4 that give 32-bits, how
ever my system is 64-bits.

What is the correct value?

I am using openSUSE 10.3 (X86-64) with gcc 4.2.3

Best,

Edmanuel
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to