Quick fix for #1103
This commit is contained in:
committed by
Joshua Granick
parent
b724bfdf9b
commit
5172cd8208
@@ -122,22 +122,25 @@ class AIRWindow extends FlashWindow {
|
||||
|
||||
}
|
||||
|
||||
nativeWindow.addEventListener (Event.CLOSING, handleNativeWindowEvent);
|
||||
nativeWindow.addEventListener (Event.CLOSE, handleNativeWindowEvent);
|
||||
|
||||
nativeWindow.visible = !hidden;
|
||||
//nativeWindow.activate ();
|
||||
nativeWindow.alwaysInFront = alwaysOnTop;
|
||||
nativeWindow.title = title;
|
||||
|
||||
if (maximized) {
|
||||
|
||||
nativeWindow.maximize ();
|
||||
|
||||
} else if (minimized) {
|
||||
|
||||
nativeWindow.minimize ();
|
||||
if (nativeWindow != null) {
|
||||
|
||||
nativeWindow.addEventListener (Event.CLOSING, handleNativeWindowEvent);
|
||||
nativeWindow.addEventListener (Event.CLOSE, handleNativeWindowEvent);
|
||||
|
||||
nativeWindow.visible = !hidden;
|
||||
//nativeWindow.activate ();
|
||||
nativeWindow.alwaysInFront = alwaysOnTop;
|
||||
nativeWindow.title = title;
|
||||
|
||||
if (maximized) {
|
||||
|
||||
nativeWindow.maximize ();
|
||||
|
||||
} else if (minimized) {
|
||||
|
||||
nativeWindow.minimize ();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (fullscreen) {
|
||||
@@ -146,11 +149,15 @@ class AIRWindow extends FlashWindow {
|
||||
|
||||
}
|
||||
|
||||
parent.__width = Std.int (nativeWindow.width);
|
||||
parent.__height = Std.int (nativeWindow.height);
|
||||
parent.__x = Math.round (nativeWindow.x);
|
||||
parent.__y = Math.round (nativeWindow.y);
|
||||
parent.stage = nativeWindow.stage;
|
||||
if (nativeWindow != null) {
|
||||
|
||||
parent.__width = Std.int (nativeWindow.width);
|
||||
parent.__height = Std.int (nativeWindow.height);
|
||||
parent.__x = Math.round (nativeWindow.x);
|
||||
parent.__y = Math.round (nativeWindow.y);
|
||||
parent.stage = nativeWindow.stage;
|
||||
|
||||
}
|
||||
|
||||
super.create (application);
|
||||
|
||||
@@ -274,4 +281,4 @@ class AIRWindow extends FlashWindow {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user