Hello, Is there anyway to detect if a Fl_Window (FLTK 1.3.x) is maximised? I'm not talking about fullscreen, but instead, when a window is expanded by the window manager to fill the entire desktop (minus the taskbars - I have 2) and retains the window decoration.
When my app is closed, I save the dimensions and position using Fl_Preferences. When the app is started, it can (try to) open up in the same same place and size. However, if the app is maximised, then then the app is started, it is sized correctly (in a way I guess) but not in maximised mode. Currently, I examine the window's dimensions and compare them against Fl::w() and Fl::h(). If either the window's width or height matches Fl::w() or Fl::h() (respectively), then I assume it's maximised. This is flawed on so many levels. There must be a better way? Also, is there a way to "ask" the window manager to start the app maximised? Thanks, -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

