Fixed bug with windows not moving to front when clicked, reported by pc0de

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1257 dfc29bdd-3216-0410-991c-e03cc46cb475
master
bitplane 2008-02-25 18:35:48 +00:00
parent d570b0d356
commit d05f91209c
1 changed files with 2 additions and 6 deletions

View File

@ -158,12 +158,8 @@ bool CGUIWindow::OnEvent(const SEvent& event)
DragStart.X = event.MouseInput.X;
DragStart.Y = event.MouseInput.Y;
Dragging = true;
if (!Environment->hasFocus(this))
{
Environment->setFocus(this);
if (Parent)
Parent->bringToFront(this);
}
if (Parent)
Parent->bringToFront(this);
return true;
case EMIE_LMOUSE_LEFT_UP:
Dragging = false;