Moved system-properties debug output. Fixed "fixMacClick" logic
This commit is contained in:
parent
6d256c8346
commit
2f63829139
@ -211,6 +211,13 @@ class SystemTray implements Menu {
|
|||||||
|
|
||||||
systemTray = new SystemTray();
|
systemTray = new SystemTray();
|
||||||
|
|
||||||
|
// if (DEBUG) {
|
||||||
|
// Properties properties = System.getProperties();
|
||||||
|
// for (Map.Entry<Object, Object> entry : properties.entrySet()) {
|
||||||
|
// logger.debug(entry.getKey() + " : " + entry.getValue());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
// no tray in a headless environment
|
// no tray in a headless environment
|
||||||
if (GraphicsEnvironment.isHeadless()) {
|
if (GraphicsEnvironment.isHeadless()) {
|
||||||
logger.error("Cannot use the SystemTray in a headless environment");
|
logger.error("Cannot use the SystemTray in a headless environment");
|
||||||
@ -369,11 +376,6 @@ class SystemTray implements Menu {
|
|||||||
|
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
logger.debug("Currently using the '{}' desktop", XDG);
|
logger.debug("Currently using the '{}' desktop", XDG);
|
||||||
|
|
||||||
// Properties properties = System.getProperties();
|
|
||||||
// for (Map.Entry<Object, Object> entry : properties.entrySet()) {
|
|
||||||
// logger.debug(entry.getKey() + " : " + entry.getValue());
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trayType == null) {
|
if (trayType == null) {
|
||||||
@ -483,7 +485,7 @@ class SystemTray implements Menu {
|
|||||||
// windows is funky, and is hardcoded to 16x16. We fix that.
|
// windows is funky, and is hardcoded to 16x16. We fix that.
|
||||||
SystemTrayFixes.fixWindows();
|
SystemTrayFixes.fixWindows();
|
||||||
}
|
}
|
||||||
else if (OS.isMacOsX()) {
|
else if (OS.isMacOsX() && useNativeMenus) {
|
||||||
// macos doesn't respond to all buttons (but should)
|
// macos doesn't respond to all buttons (but should)
|
||||||
SystemTrayFixes.fixMacOS();
|
SystemTrayFixes.fixMacOS();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user