JDK-6504385 : TrayIcon's tooltip is shown below the taskbar, XAWT
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2006-12-13
  • Updated: 2011-01-19
  • Resolved: 2007-06-08
Related Reports
Duplicate :  
Relates :  
Description
After the fix for 6380835 all the java.awt.Windows was made non-OVERRIDE_REDIRECT. I have found a case that was not covered with the fix: usage of tray icon's tooltip, on X. In XTrayIconPeer a class InfoWindow is defined. It is a subclass of java.awt.Window and is used for displaying icon's messages and tooltip. As it is no longer OVERRIDE_REDIRECT, it appears below the taskbar where the tray is located. It is reproducible at least on my KDE 3.5.4.

To reproduce the bug run any test that creates a tray icon and sets a tooltip for it. The move the mouse over the icon and wait until the tooltip is shown. If it appears below the taskbar, the bug is reproduced.
it's not reproducible on KDE 3.3.2

Comments
SUGGESTED FIX #sccs diffs -C XWindowPeer.java ------- XWindowPeer.java ------- *** /tmp/sccs.bMaOA4 Wed Dec 27 13:25:39 2006 --- XWindowPeer.java Wed Dec 27 13:07:27 2006 *************** *** 955,960 **** --- 955,964 ---- } boolean isOverrideRedirect() { + // 6504385: bypass WM involvement for short-lived windows + if (target instanceof XTrayIconPeer.InfoWindow) { + return true; + } return XWM.getWMID() == XWM.OPENLOOK_WM ? true : false; }
27-12-2006

EVALUATION Feature override_redirect allows a window manager to intercept any requests to map, move, resize, change the border width of windows. Processing the request by the window managers helps us to fix some issues (see 6380835). However, turning off override_redirect has side effects: - tooltip window appears below taskbar on latest version of KDE (6504385) - balloon window becomes empty when switch workspace on JDS (6505109) These windows are short-lived, so it sounds reasonable bypass any window manager involvement for such windows.
27-12-2006