File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -10045,6 +10045,17 @@ public void windowMove(int x, int y) {
10045
10045
}
10046
10046
10047
10047
10048
+ /**
10049
+ * When running from the PDE, this saves the window position for
10050
+ * next time the sketch is run. Needs to remain a separate method
10051
+ * so that it can be overridden by Python Mode.
10052
+ */
10053
+ public void frameMoved(int newX, int newY) {
10054
+ System.err.println(EXTERNAL_MOVE + " " + newX + " " + newY);
10055
+ System.err.flush(); // doesn't seem to help or hurt
10056
+ }
10057
+
10058
+
10048
10059
/**
10049
10060
* Internal use only: called by Surface objects to queue a position
10050
10061
* event to call windowPositioned() when it's safe, which is after
@@ -10053,10 +10064,7 @@ public void windowMove(int x, int y) {
10053
10064
*/
10054
10065
public void postWindowMoved(int newX, int newY) {
10055
10066
if (external && !fullScreen) {
10056
- // When running from the PDE, this saves the window position
10057
- // for next time the sketch is run.
10058
- System.err.println(EXTERNAL_MOVE + " " + newX + " " + newY);
10059
- System.err.flush(); // doesn't seem to help or hurt
10067
+ frameMoved(newX, newY);
10060
10068
}
10061
10069
10062
10070
windowEventQueue.put("x", newX);
You can’t perform that action at this time.
0 commit comments