I also stumbled across this comment in a posting:

<quote>
I believe the bugs you are experiencing with ManageDocks may be due to
the type of getWindowProperty32 from the X11 library. The documentation
for XGetWindowProperty says:

  "If the returned format is 8, the returned data is represented as a
  char array.  If the returned format is 16, the returned data is
  represented as a short array and should be cast to that type to obtain
  the elements.  If the returned format is 32, the returned data is
  represented as a long array and should be cast to that type to obtain
  the elements."

That is, the data is returned as an array of long even when long is not
32 bits wide. My reading of the above is that the return type of
getWindowProperty32 should be changed to 'IO (Maybe [CLong])' and
analogous for getWindowProperty8 and getWindowProperty16 w.r.t. CChar
and CShort. The situation is the same for XChangeProperty, I think.
</quote>


So, other folk see the same problems, and the solution seems to be the
same, i.e. the format value of "32" does *not* mean 32-bits (as we would
expect), instead it means "long", for whatever value "long" has on the
host platform... Or maybe "unsigned long", but anyway...



SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to