window position

Started by renanse, September 09, 2004, 17:13:53

Previous topic - Next topic

renanse

I mentioned this to Matzon on IM, but just to bug as many people as possible...  :wink:

I gather there is no longer a way to position a new window...  Seems like position (the initial position) should be a necessary attribute.  Would it be possible to change the default to having the window centered on the screen at the very least?  

When refactoring jME to use LWJGL .92, losing that ability to have the window centered in windowed mode made a lot of developers protest.  :(  Yeah, I understand you can use SWT or something like that to do this now, but who wants to force inclusion of the swt library just for position support!

elias

Well, it's not always that easy. On linux, the position was ignored by most window managers anyway (they have their own idea of where to place the window).

- elias

PeterM

I agree with renanse. How about on the linux port the window manager decides, and on the windows one it's centred? (Remember to adjust the window rect to take into account its border and title bar using AdjustRect).

I'm not sure how window management works on macs.

Matzon

we're going to add a setLocation(x,y) to Display one of the next days