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-e03cc46cb475
master
cutealien 2017-03-19 19:24:34 +00:00
parent 021485e272
commit c942f356fe
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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
{