> > maybe someone else can remember why we did it this way... > > Oh buy, this code is over 10 years old. I can barely remember > what I had for lunch yesterday ;-) > > If a window is fully off screen, we should probably loop > through all available screens and find the one that is > closest to the desired position. I am afraid that that is not > such a simple task though... . I remember we did something > somewhat intelligent when placing menus. Maybe we can reuse that code?
I think the screen_xywh() function has something like that, if you pass it a rectangle it will tell you which screen the rectangle is most on, if it straddles more than one screen. Or at least, I think that's what it's trying to do, 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 fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev