From 54298932c2e9dc99471a1395a00a3a3348bb76cb Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 26 Jun 2017 00:06:28 +0200 Subject: [PATCH] Only fixes SystemTray issues if AUTO_FIX_INCONSISTENCIES is true --- src/dorkbox/systemTray/SystemTray.java | 27 +++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/dorkbox/systemTray/SystemTray.java b/src/dorkbox/systemTray/SystemTray.java index 158a13d..af0cfaf 100644 --- a/src/dorkbox/systemTray/SystemTray.java +++ b/src/dorkbox/systemTray/SystemTray.java @@ -737,20 +737,21 @@ class SystemTray { - // this logic has to be before we create the system Tray - if (OS.isWindows()) { - // windows hard-codes the image size - SystemTrayFixes.fixWindows(trayImageSize); + if (AUTO_FIX_INCONSISTENCIES) { + // this logic has to be before we create the system Tray + if (OS.isWindows()) { + // windows hard-codes the image size + SystemTrayFixes.fixWindows(trayImageSize); + } + else if (OS.isMacOsX()) { + // macosx doesn't respond to all buttons (but should) + SystemTrayFixes.fixMacOS(); + } + else if ((OS.isLinux() || OS.isUnix())) { + // linux/mac doesn't have transparent backgrounds for swing and hard-codes the image size + SystemTrayFixes.fixLinux(trayImageSize); + } } - else if (OS.isMacOsX()) { - // macosx doesn't respond to all buttons (but should) - SystemTrayFixes.fixMacOS(); - } - else if ((OS.isLinux() || OS.isUnix())) { - // linux/mac doesn't have transparent backgrounds for swing - SystemTrayFixes.fixLinux(trayImageSize); - } -