> > 
> > But ofcourse, GetSystemMetrics(SM_CXSCREEN) is a windows 
> > function, so I'd like to have it's equivalent under unix.
> 
> Yes, you can query the Xserver to get the window dimensions 
> in the same
> way,
> 
> I think XGetWindowProperty() is the way, although it is a pain to use.
> 
> Off hand I can't remember what atom you have to pass it to 
> get the full
> screen-size either.
> I know we use _NET_WORKAREA to get the "usable" screen area, but of
> course that avoids the menu-bar and so forth, which is exactly the
> opposite of what you want...

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 and
use that - simpler than trying to do it with XGetWindowProperty().

Think that will work. Give it a try, see if that is what you want or
not.





SELEX Sensors and Airborne Systems Limited
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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to