On 30 Nov 2009, at 21:22, Harvey Chapman wrote: > FLTK-1.3.x + Xvesa + jwm > > I have a top-level window that I'm trying to position at (0, y) > where y is some legitimate value for the screen size and accounts > for the window height (including decorations). If my window's width > exceeds the screen width, my window is always positioned at (0,0). > If my window's width is less than the screen width, the "y" value > is honored. > > Is there a way to have my (0,y) position always honored?
Are you calling my_win->position(0,y); here, or is this just the construction of the window? > Is this FLTK or is it jwm? How can I tell? Not sure. I have a vague recollection that fltk may try to resize/position the window at creation, to get as much of it as possible on the screen (I guess the assumption is that you want to get as much of your window on-screen as possible, regardless of what you asked for, or something...) It is entirely possible that the WM is also "helping" you out here, too... If you just create the window with no position given (e..g new my_window(w,h);..) then call resize() or position() on it, does that allow you to set it to the correct place? _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

