dmuratshin 9 years ago
parent
commit
86744a61db
1 changed files with 2 additions and 0 deletions
  1. 2 0
      oxygine/src/core/oxygine.cpp

+ 2 - 0
oxygine/src/core/oxygine.cpp

@@ -673,6 +673,8 @@ namespace oxygine
 
                             log::messageln("focus: %d", (int)focus);
                             Event ev(focus ? Stage::ACTIVATE : Stage::DEACTIVATE);
+
+                            spStage stage = getStageByWindow(event.window.windowID);
                             if (stage)
                                 stage->dispatchEvent(&ev);