From: Jim Procter Date: Fri, 15 Sep 2017 14:42:50 +0000 (+0100) Subject: JAL-1900 JAL-1625 back out OSX specific double buffer disabling (seems to do nothing) X-Git-Tag: Release_2_11_0~244^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=518409a5902589799950885ac00c8ce685969414;p=jalview.git JAL-1900 JAL-1625 back out OSX specific double buffer disabling (seems to do nothing) --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index c605378..65eda4b 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -41,7 +41,6 @@ import jalview.structure.StructureSelectionManager; import jalview.urls.IdOrgSettings; import jalview.util.ImageMaker; import jalview.util.MessageManager; -import jalview.util.Platform; import jalview.util.UrlConstants; import jalview.viewmodel.AlignmentViewport; import jalview.ws.params.ParamManager; @@ -346,10 +345,6 @@ public class Desktop extends jalview.jbgui.GDesktop boolean showjconsole = jalview.bin.Cache.getDefault("SHOW_JAVA_CONSOLE", false); desktop = new MyDesktopPane(selmemusage); - if (Platform.isAMac()) - { - desktop.setDoubleBuffered(false); - } showMemusage.setSelected(selmemusage); desktop.setBackground(Color.white); getContentPane().setLayout(new BorderLayout()); @@ -868,13 +863,7 @@ public class Desktop extends jalview.jbgui.GDesktop frame.setResizable(resizable); frame.setMaximizable(resizable); frame.setIconifiable(resizable); - if (Platform.isAMac()) - { - frame.setIconifiable(false); - frame.setFrameIcon(null); - // frame.setDesktopIcon(null); - frame.setDoubleBuffered(false); - } + if (frame.getX() < 1 && frame.getY() < 1) { frame.setLocation(xOffset * openFrameCount,