Hide AIR windows by default when running munit
This commit is contained in:
@@ -108,6 +108,10 @@ class AIRWindow extends FlashWindow {
|
|||||||
|
|
||||||
nativeWindow = Lib.current.stage.nativeWindow;
|
nativeWindow = Lib.current.stage.nativeWindow;
|
||||||
|
|
||||||
|
#if munit
|
||||||
|
hidden = true;
|
||||||
|
#end
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var options = new NativeWindowInitOptions ();
|
var options = new NativeWindowInitOptions ();
|
||||||
@@ -182,7 +186,7 @@ class AIRWindow extends FlashWindow {
|
|||||||
|
|
||||||
public override function focus ():Void {
|
public override function focus ():Void {
|
||||||
|
|
||||||
if (nativeWindow != null) {
|
if (nativeWindow != null && nativeWindow.visible) {
|
||||||
|
|
||||||
nativeWindow.activate ();
|
nativeWindow.activate ();
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<content>::APP_FILE::.swf</content>
|
<content>::APP_FILE::.swf</content>
|
||||||
<systemChrome>::if (WIN_BORDERLESS)::none::else::standard::end::</systemChrome>
|
<systemChrome>::if (WIN_BORDERLESS)::none::else::standard::end::</systemChrome>
|
||||||
<transparent>false</transparent>
|
<transparent>false</transparent>
|
||||||
<visible>::if (WIN_HIDDEN)::false::else::true::end::</visible>
|
<visible>::if (LIB_MUNIT)::false::else::::if (WIN_HIDDEN)::false::else::true::end::::end::</visible>
|
||||||
<minimizable>true</minimizable>
|
<minimizable>true</minimizable>
|
||||||
<maximizable>true</maximizable>
|
<maximizable>true</maximizable>
|
||||||
<resizable>::WIN_RESIZABLE::</resizable>
|
<resizable>::WIN_RESIZABLE::</resizable>
|
||||||
|
|||||||
Reference in New Issue
Block a user