This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 33480

Summary: [MDI] Fronting a dialog fronts the main window
Product: platform Reporter: ivan <ivan>
Component: Window SystemAssignee: mslama <mslama>
Status: CLOSED DUPLICATE    
Severity: blocker CC: mmirilovic, pzavadsky
Priority: P3    
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Attachments: Test app

Description ivan 2003-05-07 22:51:36 UTC
I was trying to follow some instructions in a 
bug to reproduce a problem. The instructions
called for opening the "New" wizard after
selecting a directory. (Actually doesn't matter
what dialog). So I opened it and clicked on the
window banner for the Wizard dialolg.
That fronted the whole main window!
Which hid the bug tool I was reading from.

fronting a dialog should leave the main window
alone?
Comment 1 mslama 2003-05-13 14:50:29 UTC
I tried to reproduce but no success. Could you give us more info how
to reproduce. It is not clear to me what do you mean. Do you mean that
when you activate dialog it also fronts main window (even if main
window still stays behind dialog)? Or something different?
Comment 2 ivan 2003-05-13 21:15:41 UTC
Yes, that is what I mean. 
Fronting the dialog also fronts the main window.
Did you try this on a CDE desktop?
Comment 3 mslama 2003-05-14 08:34:49 UTC
I checked this on Linux RH 7.1 with KDE 2.1.1 - behaviour is the same.
I think it is caused by fact that owner of dialog is main window. It
would be possible to make simple test app to check that. We must do
that to keep dialog in front of main window. So I am afraid it is not
possible to fix/change it.
Comment 4 mslama 2003-05-14 14:10:07 UTC
I created simple test app to compare behaviour of modal/nonmodal
dialog with/without owner:

On Linux, RH 7.1, KDE 2.1.1:
1.Interesting is that modal dialog stays in front of its owner even if
owner is not set. 
2.Nonmodal dialog without owner can be behind of main app window. I
think this is main reason why we set owner to dialog - not to allow
dialog to be hidden behind main window.
3.When dialog has no owner it has its own tab in task list.
4.When dialog does not have owner it has no no tab in task list.

It would be good to test it under Windows and Solaris Marian :).
Comment 5 mslama 2003-05-14 14:10:53 UTC
Created attachment 10294 [details]
Test app
Comment 6 mslama 2003-06-30 14:01:56 UTC
Fixed as issue #34670: If possible active window is set as dialog owner.

*** This issue has been marked as a duplicate of 34670 ***
Comment 7 Marian Mirilovic 2003-07-23 15:36:44 UTC
verified, closed - it's duplicate.
Comment 8 Marian Petras 2003-07-30 21:09:54 UTC
*** Issue 33086 has been marked as a duplicate of this issue. ***
Comment 9 Marian Petras 2003-08-05 16:37:45 UTC
*** Issue 33720 has been marked as a duplicate of this issue. ***