mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixes to make closing of applets perhaps behave better
This commit is contained in:
@@ -805,16 +805,8 @@ afterwards, some of these steps need a cleanup function
|
||||
}
|
||||
}
|
||||
|
||||
public void doStop() {
|
||||
/*
|
||||
if (presenting) {
|
||||
presenting = false; // to avoid endless recursion
|
||||
doClose();
|
||||
//presentationWindow.hide();
|
||||
return;
|
||||
}
|
||||
*/
|
||||
|
||||
public void doStop() {
|
||||
if (pdeRuntime != null) pdeRuntime.stop();
|
||||
if (watcher != null) watcher.stop();
|
||||
//System.out.println("stop2");
|
||||
|
||||
@@ -105,13 +105,6 @@ public class PdeRuntime implements PdeMessageConsumer {
|
||||
}
|
||||
}
|
||||
});
|
||||
/*
|
||||
window.addFocusListener(new FocusAdapter() {
|
||||
public void focusLost(FocusEvent e) {
|
||||
System.out.println(e);
|
||||
window.toFront();
|
||||
}});
|
||||
*/
|
||||
|
||||
} else {
|
||||
window = new Frame(editor.sketchName); // gonna use ugly windows instead
|
||||
@@ -123,9 +116,6 @@ public class PdeRuntime implements PdeMessageConsumer {
|
||||
public void windowClosing(WindowEvent e) {
|
||||
stop();
|
||||
editor.doClose();
|
||||
//new DelayedClose(editor);
|
||||
//editor.doClose();
|
||||
//editor.doStop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user