JAL-2779 hook in our own AquaInternalFrameManager when on OSX
authorJim Procter <jprocter@issues.jalview.org>
Wed, 18 Oct 2017 16:14:46 +0000 (17:14 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 18 Oct 2017 16:14:46 +0000 (17:14 +0100)
src/jalview/gui/Desktop.java

index 1f8983f..cb3ed95 100644 (file)
@@ -361,7 +361,9 @@ public class Desktop extends jalview.jbgui.GDesktop
     desktop.setDesktopManager(
             new MyDesktopManager(
                     (Platform.isWindows() ? new DefaultDesktopManager()
-                            : desktop.getDesktopManager())));
+                            : Platform.isAMac()
+                                    ? new AquaInternalFrameManager()
+                                    : desktop.getDesktopManager())));
 
     Rectangle dims = getLastKnownDimensions("");
     if (dims != null)