> I'd like to know how to have a real fullscreen mode under linux... > (I mean without the "start" bar) > > Under windows I am just using > resize(Fl::x(),Fl::y(),GetSystemMetrics(SM_CXSCREEN),GetSystem > Metrics(SM_CYSCREEN)); > > 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... A cheap, portable and reasonably reliable trick I have used goes like this: Use Fl::screen_xywh() to get the workarea then "adjust" the returned height up to match the reported width. That is, if the width = 1024 and the height = 728, I just force it to 1024x768 and I'm good to go. This nasty hack worked well when everybody had 4x3 aspect displays, but is less good now that there are lots of 16x9, 16x10, 3x2 and so forth displays out there.... > I think it would be usefull to have new variables in FLTK > defining the REAL full screen resolution. Probably best file an STR for a feature request, I think. 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

