From e08211309f600400502e8d15ce4cdc2629ad8742 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 1 Jun 2015 17:44:33 +0200 Subject: [PATCH] Revert "MacOSX: fullscreen support. Fixes #3256" This reverts commit e375571945900c9fa629fe72d0bba46b9b08c176. --- app/src/processing/app/Editor.java | 6 +----- app/src/processing/app/macosx/ThinkDifferent.java | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 044c1f464..c72b170ac 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -28,12 +28,12 @@ import cc.arduino.view.StubMenuListener; import com.google.common.base.Predicate; import com.jcraft.jsch.JSchException; import jssc.SerialPortException; +import org.apache.commons.compress.utils.IOUtils; import processing.app.debug.*; import processing.app.forms.PasswordAuthorizationDialog; import processing.app.helpers.OSUtils; import processing.app.helpers.PreferencesMapException; import processing.app.legacy.PApplet; -import processing.app.macosx.ThinkDifferent; import processing.app.syntax.*; import processing.app.tools.*; import static processing.app.I18n._; @@ -193,10 +193,6 @@ public class Editor extends JFrame implements RunnerListener { Base.setIcon(this); - if (OSUtils.isMacOS()) { - ThinkDifferent.setFullscreenable(this); - } - // Install default actions for Run, Present, etc. resetHandlers(); diff --git a/app/src/processing/app/macosx/ThinkDifferent.java b/app/src/processing/app/macosx/ThinkDifferent.java index f2e675b12..a7fd15570 100644 --- a/app/src/processing/app/macosx/ThinkDifferent.java +++ b/app/src/processing/app/macosx/ThinkDifferent.java @@ -26,7 +26,6 @@ import com.apple.eawt.*; import processing.app.Base; import processing.app.Editor; -import javax.swing.*; import java.io.File; import java.util.List; @@ -94,10 +93,6 @@ public class ThinkDifferent { }); } - public static void setFullscreenable(JFrame frame) { - FullScreenUtilities.setWindowCanFullScreen(frame, true); - } - private static boolean waitForBase() { int slept = 0; while (Base.INSTANCE == null) {