We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cfbd9e commit 2105c56Copy full SHA for 2105c56
core/src/processing/core/ThinkDifferent.java
@@ -133,18 +133,20 @@ static private Desktop getDesktop() {
133
static native public void activate();
134
135
// Used by py5 to bring Sketch to the front
136
- static public void activateSketchWindow() {
+ static public boolean activateSketchWindow() {
137
try {
138
String osVersion = System.getProperty("os.version");
139
int versionNumber = Integer.parseInt(osVersion.split("\\.")[0]);
140
141
if (versionNumber >= 14) {
142
activate();
143
+ return true;
144
} else if (versionNumber >= 10) {
145
activateIgnoringOtherApps();
146
147
}
148
} catch (Exception e) {
- // do nothing
149
+ return false;
150
151
152
0 commit comments