Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6438179

XToolkit.isTraySupported() result has nothing to do with the system tray

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6, 6u2, 6u7, 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic, x86, sparc
    • OS:
      linux, solaris_2.5.1, solaris_nevada, solaris_10

      Backports

        Description

        [dep, 13Jun2006]

          Instead of determining if the system tray is supported,
          isTraySupported() derives its result from the name of the window
          manager. Specifically, it returns true only if the window manager is
          named "Metacity" or "KWin". Not only is there no requirement that
          the window manager be the entity providing the system tray, at least
          in the case of Metacity, it really doesn't. This means:
          
            If I use Gnome (complete with panel, which supplies the system
            tray) but with an alternate window manager, SystemTray.isSupported()
            returns false and I can't use the system tray.
          
            If I use Metacity in an environment where there is no system tray
            (e.g. outside of Gnome), SystemTray.isSupported() will incorrectly
            return true.

          More generally, if I have a fully functional system tray but am not
          running one of the above window managers, I can't access it.

          This test should be based on the presence of a tray which follows the
          System Tray Protocol Specification, not random other factors.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dcherepanov Dmitry Cherepanov
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: