Try harder to move Window to custom WindowPosition set in SIrrlichtCreationParameters on X11.
Thx@ Hernan Ezequiel Di Giorgi for the patch (#304). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5369 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
021485e272
commit
c942f356fe
|
@ -1,6 +1,7 @@
|
|||
--------------------------
|
||||
Changes in 1.9 (not yet released)
|
||||
|
||||
- Try harder to move Window to custom WindowPosition set in SIrrlichtCreationParameters on X11. Thx@ Hernan Ezequiel Di Giorgi for the patch (#304).
|
||||
- Fix bug in virtual filessystem which prevented createFileList from working. Thx @Cube for reporting a problem.
|
||||
- ITriangleSelector now can also return meshbuffer collision information.
|
||||
- core::string::split now adds delimiter to token before delimiter when keepSeparators is true. That way we never end up with 2 tokens for an original string with a single character.
|
||||
|
|
|
@ -502,6 +502,11 @@ bool CIrrDeviceLinux::createWindow()
|
|||
IrrPrintXGrabError(grabPointer, "XGrabPointer");
|
||||
XWarpPointer(XDisplay, None, XWindow, 0, 0, 0, 0, 0, 0);
|
||||
}
|
||||
else if (CreationParams.WindowPosition.X >= 0 || CreationParams.WindowPosition.Y >= 0) // default is -1, -1
|
||||
{
|
||||
// Window managers are free to ignore positions above, so give it another shot
|
||||
XMoveWindow(XDisplay,XWindow,x,y);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue