retain original java.awt.Frame when it's in use

This commit is contained in:
Ben Fry
2015-05-31 20:16:23 -04:00
parent 2fb40f416f
commit 20ee4bded6
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -9716,7 +9716,8 @@ public class PApplet implements PConstants {
g = createPrimaryGraphics();
surface = g.createSurface();
if (g.displayable()) {
// if the PSurface calls setFrame() no need to create a fake frame
if (g.displayable() && frame == null) {
frame = new Frame() {
@Override
public void setResizable(boolean resizable) {
+1 -1
View File
@@ -517,7 +517,7 @@ public class PSurfaceAWT extends PSurfaceNone {
// http://code.google.com/p/processing/issues/detail?id=467
frame.setResizable(false);
// return frame;
sketch.setFrame(frame);
}