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-e03cc46cb475master
parent
d570b0d356
commit
d05f91209c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue