Is there any way to give absolute position to an SDL window? I’m
launching external SDL-based apps from one central one and I need frameless
windows to appear in very specific areas…
- John Blanco
- Rapture In Venice @ http://members.bbnow.net/jblanco
- "I can't stand to fly...I'm not that naive..." - Five For Fighting
I can think of two ways to do it, neither use SDL.
setup the window manager (assuming you are in X windows) to always position the window (by name perhaps) at a predetermined spot on the screen.
you hack SDL to add a method to move the window via XMoveWindow, or you use the platform specific elements in SDL that have the window reference and call XMoveWindow yourself.
I any case, there’s no good portable way of doing this, that I can see, in the current implementation of SDL.–
-==-
Jon Atkins http://jonatkins.org/
I can think of two ways to do it, neither use SDL.
setup the window manager (assuming you are in X windows) to always
position the window (by name perhaps) at a predetermined spot on the
screen.
you hack SDL to add a method to move the window via XMoveWindow, or
you use the platform specific elements in SDL that have the window
reference and call XMoveWindow yourself.
I any case, there’s no good portable way of doing this, that I can see,
in the current implementation of SDL.
To me, this seems like something that would be useful in SDL. Any reason
why it couldn’t be added?> –
-=<Long Island Man>=-
Jon Atkins
http://jonatkins.org/