From 518409a5902589799950885ac00c8ce685969414 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 15 Sep 2017 15:42:50 +0100 Subject: [PATCH] JAL-1900 JAL-1625 back out OSX specific double buffer disabling (seems to do nothing) --- src/jalview/gui/Desktop.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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, -- 1.7.10.2