The fix for ticket #1121 causes an issue for Java to create a tray icon on the second screen (display :0.1) while it continue to work on display :0.0. The error I encountered was when running aTunes:
ERROR 2015-02-22 15:49:19,386 --> SystemTrayHandler.addTrayIcon [] java.awt.AWTException: TrayIcon couldn't be displayed. ERROR 2015-02-22 15:49:19,386 --> Logger.error [] TrayIcon couldn't be displayed. ERROR 2015-02-22 15:49:19,386 --> SystemTrayHandler.addTrayIcon [] sun.awt.X11.XTrayIconPeer.<init>(XTrayIconPeer.java:254) ERROR 2015-02-22 15:49:19,387 --> SystemTrayHandler.addTrayIcon [] sun.awt.X11.XToolkit.createTrayIcon(XToolkit.java:1053)
Reverting the expression within Fluxbox::searchScreen() helps me, but I do not know if that breaks the fix in ticket #1121 or not. I will leave it to the professionals. :)
- if (*it && (*it)->rootWindow() == window_root) + if (*it && (*it)->rootWindow() == window)
now the code finds the correct screen for the given window :) if that's a "problem" it points towards something that is hidden deeeeep. we will see.
This should properly "fix" it by a performance optimization =)
https://github.com/luebking/fluxbox/commit/bf7fcde1fdcf47674574ac4fb029ac11a0534c7d