mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
retain original java.awt.Frame when it's in use
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user