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 177735 - [focus on progress dialog] when progress dialog cannot steal focus, it does not close itself
Summary: [focus on progress dialog] when progress dialog cannot steal focus, it does n...
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
: 166478 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-27 05:03 UTC by matusdekanek
Modified: 2011-10-07 14:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matusdekanek 2009-11-27 05:03:13 UTC
When running IDE on KDE(linux) with 'focus stealing prevention level' set to 'high', then following thing occurs:
I start profiling some project, focus on another application (web,mail..) and wait until the profiled application runs. When that happens I switch back to IDE and there stil hangs the 'Progress.. performing instrumentation" dialog. I can close it by hand, but this is not the expected behavior.
This may be sometimes observed also with gnome or even in windows, if the user changes the window focus in the right moment.

From what I see, I assume that KDE uses some 'hack' that detects when a window  steals a focus and then immediatelly returns the focus to the unfocused(robbed) window, so for the user it appears, that his window did not loose the focus. 

So, it seems that the 'progress' dialog and IDE somehow hope and rely on possibility, that the dialog will be able to steal the focus. That is bad for two reasons:
-many people find focus stealing really annoying, therefore any focus-stealing should be avoided
-both major linux desktop managers (kde and gnome) will probably in future allow user to disable focus stealing(kde already does) and there are some ways to disable it in windows as well

I my opinion, best solution would be to not use any focus stealing at all and to not rely on focus as well.
Comment 1 J Bachorik 2011-01-19 09:00:04 UTC
*** Bug 166478 has been marked as a duplicate of this bug. ***
Comment 2 Jiri Sedlacek 2011-10-05 16:09:20 UTC
Hopefully fixed by http://hg.netbeans.org/profiler-main/rev/828b4439ef1c.
Comment 3 Quality Engineering 2011-10-07 14:43:54 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/828b4439ef1c
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #177735 #199180 - hopefully fixed progress dialog issues by a different implementation