We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d0612 commit 43e5518Copy full SHA for 43e5518
1 file changed
core/src/processing/core/ThinkDifferent.java
@@ -129,6 +129,22 @@ static private Desktop getDesktop() {
129
130
static native public void activate();
131
132
+ // Used by py5 to bring windows to the front
133
+ static public void activateSketchWindow() {
134
+ try {
135
+ String osVersion = System.getProperty("os.version");
136
+ int versionNumber = Integer.parseInt(osVersion.split("\\.")[0]);
137
+
138
+ if (versionNumber >= 14) {
139
+ activate();
140
+ } else if (versionNumber >= 10) {
141
+ activateIgnoringOtherApps();
142
+ }
143
+ } catch (Exception e) {
144
+ // ignore
145
146
147
148
static {
149
final String NATIVE_FILENAME = "libDifferent.jnilib";
150
try {
0 commit comments