JDK-5028924 : AlwaysOnTop(RFE #4303256) don't work on linux flavours & solaris with XToolkit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2,5.0,6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_8,solaris_9
  • CPU: generic,sparc
  • Submitted: 2004-04-08
  • Updated: 2010-07-09
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b03Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
AlwaysOnTop behaviour introduced as implementation of RFE 4303256 doesn't work properly
in case of Linux
Following is the Linux flavor I have tested and it fails on all
Shrike (Red Hat 9) With metacity 2.4.3.4
Fedora (Red Hat Advance Server 3.0) metacity 2.4.55
Mercury(JDS) with metacity 2.4.55

Attached the testcase's which shows the failure
1) rfe4303256.java : This testcase tests extensibly this feature and this was developed
   for testing of RFE 4303256, This is automated test and display in console the failed
   scenario's.

2) TestOnTop_Bug.java : this is small testcase which creates two windows 
    a) JFrame : setAlwaysOnTop(true)
    b) JWindow: setAlwaysOnTop(false)
    Now if the output shows JWindow over JFrame that means a failure as we are setting
    JFrame property alwaysOnTop so it should be on top of JWindow, and this is what happens
    in Solaris Gnome and Windows, But not Linux



###@###.### 2004-04-08

-------------------------------------

In generation of baseline results its being discovered that this test fails
also on solaris 10(gnome with metacity) if we use XToolkit
i.e. awt.toolkit=sun.awt.X11.XToolkit
 
###@###.### 2004-04-14

Comments
EVALUATION fixed with 6380835.
10-10-2006

EVALUATION I've tested with newer kwin :-) kwin --version Qt: 3.3.4 KDE: 3.4.0 Level "b" KWin: 3.0 and all works ok. So, the only problem we have here is a (J|)Window's implementation.
23-01-2006

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
07-09-2004

EVALUATION Name: dmR10075 Date: 04/09/2004 TestOnTop_Bug.java failes due to implementaiton of Window class on Linux. We use override_redirect to implement them, and override_redirect windows stay above all other windows on the desktop, including always-on-top windows. ###@###.### 2004-04-09 ====================================================================== Name: dmR10075 Date: 04/09/2004 To eliminate bogus failures due to override_redirect behavior, I have modified test to remove testing of JWindow. Information below is presented related to this modified test. KDE(3.1.4): it fails because KDE has renamed _NET_WM_STATE_ABOVE property into NET_WM_STATE_STAYS_ON_TOP. If I rename this property accordingle in the workspace, modified test passes. Gnome/Metacity(2.4.55): modified test passes. ###@###.### 2004-04-09 ======================================================================
09-04-2004