diff --git a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/managers/LayoutManager.as b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/managers/LayoutManager.as index ba877ab53bf236b7dbbfbc91ead9837c3e0c20ea..e301279b0e92c0c86ef0f7e260e067a2593101e9 100644 --- a/bigbluebutton-client/src/org/bigbluebutton/modules/layout/managers/LayoutManager.as +++ b/bigbluebutton-client/src/org/bigbluebutton/modules/layout/managers/LayoutManager.as @@ -236,7 +236,7 @@ package org.bigbluebutton.modules.layout.managers } var windows:Array = obj.windows; if (windows != null) { - for each (window in windows) { + for each (var window:MDIWindow in windows) { LOGGER.debug(e.type + "/" + obj.mdiEventType + " on window " + WindowLayout.getType(window)); onActionOverWindowFinished(window); } @@ -245,19 +245,14 @@ package org.bigbluebutton.modules.layout.managers } }); _canvas.windowManager.addEventListener(MDIManagerEvent.WINDOW_ADD, function(e:MDIManagerEvent):void { - e.window.callLater(function():void { - checkSingleWindowPermissions(e.window); - LOGGER.debug("applying layout to just created window " + WindowLayout.getType(e.window)); - applyLayout(_currentLayout); - }); + checkSingleWindowPermissions(e.window); + LOGGER.debug("applying layout to just created window " + WindowLayout.getType(e.window)); + applyLayout(_currentLayout); }); _canvas.windowManager.addEventListener(MDIManagerEvent.WINDOW_FOCUS_START, function(e:MDIManagerEvent):void { OrderManager.getInstance().bringToFront(e.window); }); - for each (var window:MDIWindow in _canvas.windowManager.windowList.reverse()) { - OrderManager.getInstance().bringToFront(window); - } } public function switchToLayout(name:String):void {