> OK, on second thoughts, it might be better to do: > > XWindowAttributes xwa; > XGetWindowAttributes(dpy, DefaultRootWindow(dpy), &xwa); > > Then you can get the width and height from xwa.width and xwa.height
It seems indeed much easyer... but dpy is not defined in your example... I tried Fl::dpy but doesn't seem to work better... How can I get the pointer to the current display? Thanks again, Loic > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS= > 14 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 mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

