Commit a2788441 authored by bitplane's avatar bitplane

Oops.. Also added pc0de's fix as it works with tab

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1258 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d05f9120
...@@ -119,7 +119,7 @@ bool CGUIWindow::OnEvent(const SEvent& event) ...@@ -119,7 +119,7 @@ bool CGUIWindow::OnEvent(const SEvent& event)
else else
if (event.GUIEvent.EventType == EGET_ELEMENT_FOCUSED) if (event.GUIEvent.EventType == EGET_ELEMENT_FOCUSED)
{ {
if (isMyChild(event.GUIEvent.Caller) && Parent) if (Parent && ((event.GUIEvent.Caller == this) || isMyChild(event.GUIEvent.Caller)))
Parent->bringToFront(this); Parent->bringToFront(this);
} }
else else
......
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