JDK-6267149 : PIT: Frames are not iconifying on XToolkit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_sun
  • CPU: x86
  • Submitted: 2005-05-09
  • Updated: 2006-04-06
  • Resolved: 2005-05-26
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 6
6 b38Fixed
Related Reports
Relates :  
Description
Frames are not getting iconified when clicking the iconify button on the top right corner. They are not iconifying even when calling setExtendedState(Frame.ICONIFY). Looks like they momentarily iconify and gets restored. 

This is happening on the following PIT build on all unix platforms with XToolkit. Not reproducible on Mustang - b35. 

java version "1.6.0-awt.pit-int-awt-blade"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_06_May_2005_08_56-b00)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode)

I am able to reproduce this on SolarisSparc9-CDE, Cinnabar, Linux AS 3.1 using the above PIT build. This is a basic feature and should work fine. 
 
Run the attached test on any of the unix platforms mentioned above. Click on the button or the iconify button on the top-right corner. If the frame does not get iconified, the bug is reproduced.
###@###.### 2005-05-09 09:48:38 GMT

The bug can be also reproduced by shading the frame or switching to another desktop (if supported by WM).

###@###.### 2005-05-11 16:33:51 GMT

Comments
EVALUATION This bug is caused by the fix for 5109571: we call to XMapRaised if current window state is visible, but it is not correct for iconified frames. If it were the only pproblem, the fix could be corrected (to track the iconified/normal state), but the same situation is when shading the frame or switching to another desktop. These two actions do not trigger state changes, only Map/UnmapNotify, and therefore are not tracked in XToolkit. ###@###.### 2005-05-11 16:33:51 GMT We backed out the fix for 5109571 ###@###.### 2005-05-26 12:25:03 GMT
11-05-2005