Commit d05f9120 authored by bitplane's avatar bitplane

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
parent d570b0d3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment