Menu

#1128 Java unable to create tray icon on second screen

future release
closed-fixed
nobody
None
5
2016-07-01
2015-02-22
Sean Farley
No

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)

Discussion

  • Mathias Gumz

    Mathias Gumz - 2015-02-23

    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.

     
  • Mathias Gumz

    Mathias Gumz - 2016-07-01
    • status: open --> closed-fixed
     

Log in to post a comment.