I am creating a Frame, Dialog and a Window. Frame is the parent of the dialog and dialog is the parent of the window. Initially I am making the frame and the window visible. Window is not gaining focus when clicked since the dialog is not showing. On clicking a button in the frame, I am opening the modal dialog. Modal dialog does not block the window since the window is it's child. Now I am clicking on the window, expecting it to gain focus. But the window is not gaining focus even after the dialog is shown. But when I hide and shown the dialog again, the window gains focus.
This is reproducible only on WinXP and not on XToolkit. This is reproducible on Mustang-b73 but not on Tiger-FCS. Hence this is a regression in Mustang.
I have attached a sample test. Execute the sample test. You would see few windows on the screen. Try clicking on the window located to the left of 'Blocked Frame'. It will not gain focus. Now click on 'Open Dialog' button. A modal dialog will be shown. Now click on the 'Dummy' button on the same window. If it does not gain focus, the bug is reproduced (Test can be run as an application as well as Applet).