Bug 77341 - dialogs switch focus to first konqueror-window instead of the window the message applies to
Summary: dialogs switch focus to first konqueror-window instead of the window the mess...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 78330 80276 80694 81014 82103 83118 83139 85141 86484 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-12 00:29 UTC by Thomas Friedrichsmeier
Modified: 2004-08-04 14:33 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Friedrichsmeier 2004-03-12 00:29:35 UTC
Version:            (using KDE KDE 3.2.1)
Installed from:    Debian testing/unstable Packages
OS:          Linux

When information is shown in a dialog such as "do you want to resend POST data" or "you are about to leave secure mode and go to an unencrypted page", the first konqueror window is raised and receives focus after the dialog is finished.

To reproduce:
1) Open konqueror in web-browsing mode
2) Open a second window with Crtl+N
3) Point the second window to some form with POST-method and send the POST-request
4) Try to reload the second window

Now, the first window will get raised and a dialog will be shown asking you, whether you want to resend the POST-data.
Instead, of course, the second window should remain visible.

This report might be related to bug #18165.
Comment 1 Stephan Binner 2004-03-15 10:38:12 UTC
Which focus prevention level?
Comment 2 Thomas Friedrichsmeier 2004-03-15 23:29:48 UTC
I wasn't even aware of the existence of a focus stealing preventing setting. 
The original report was with "Low". Now I fiddled with some other settings:

"Normal": same result as reported
"High": The dialog does not get focussed and is opened in the background. 
However, as soon as you bring the dialog to the foreground in order to 
interact with it ("Resend" or "Cancel"), the first konqueror window is also 
brought to the foreground along with the dialog.
"Extreme": Same as "High".

So - this does not make any practical difference. The core of the problem 
seems to be, that the dialog always gets associated with/parented to the 
first konqueror window instead of the window it applies to. Focus stealing 
prevention does not solve this.

Comment 3 soloturn99 2004-04-07 03:32:20 UTC
this happens also when downloading files. try downloading a file:

1. http://sourceforge.net/forum/forum.php?forum_id=365709
2. middle click on "homepage"
3. middle click on "nightly cvs code"
   a link to a tar.gz
4. a new window is opened, with the tar.gz in the url field
5. focus is going back to window from 1.
6. a save as dialog pops up.

there should be no new window, if a download dialog pops up. the focus should stay on 2. homepage, and not go back to 1.
Comment 4 Lubos Lunak 2004-04-23 16:52:59 UTC
Which Qt version is that? I don't see any problem (except for some small glitch only when using standalone menubar).
Comment 5 Thomas Friedrichsmeier 2004-04-23 17:25:57 UTC
> Which Qt version is that?

I don't know, which version I was using at the time I submitted the report. 
Right now it's:

qt 3.2.3
kdelibs 3.2.2
konqueror 3.2.2
debian unstable

and the problem persists.
Note, though, that I can't reproduce it using the method described in comment 
#3, since for me, Ark gets opened in the new window created in step 4. 
Instead, the problem occurs when I left click instead of middle click in step 
3. A dialog pops up, asking what to do (save, open, cancel) and focus goes 
back to the first window.
Also note, that the problem seems to occur only for some dialogs, not for all 
dialogs. If, for instance, I right click in step 3 and chose "Save Link As" 
everything is fine.
If I chose "Save Link As" and pick an already existing filename, I will get a 
dialog asking whether to overwrite that file and focus is still where it 
should be. However, the second dialog (see bug #64660) asking whether to 
overwrite the file will switch focus back to and raise the first konqueror 
window.

Comment 6 Lubos Lunak 2004-04-28 11:13:11 UTC
*** Bug 80276 has been marked as a duplicate of this bug. ***
Comment 7 Lubos Lunak 2004-04-29 11:46:51 UTC
Should be fixed.
Comment 8 Lubos Lunak 2004-04-30 15:41:39 UTC
*** Bug 80694 has been marked as a duplicate of this bug. ***
Comment 9 Lubos Lunak 2004-04-30 15:42:28 UTC
Upgrading to Qt3.3.x should avoid the problem as well, before next KDE version is released.
Comment 10 Lubos Lunak 2004-05-03 15:40:33 UTC
*** Bug 78330 has been marked as a duplicate of this bug. ***
Comment 11 Lubos Lunak 2004-05-06 13:30:20 UTC
*** Bug 81014 has been marked as a duplicate of this bug. ***
Comment 12 Lubos Lunak 2004-05-24 14:09:39 UTC
*** Bug 82103 has been marked as a duplicate of this bug. ***
Comment 13 Lubos Lunak 2004-06-10 11:48:27 UTC
*** Bug 83139 has been marked as a duplicate of this bug. ***
Comment 14 Lubos Lunak 2004-06-10 11:53:36 UTC
*** Bug 83118 has been marked as a duplicate of this bug. ***
Comment 15 Lubos Lunak 2004-07-24 12:37:48 UTC
*** Bug 85141 has been marked as a duplicate of this bug. ***
Comment 16 Lubos Lunak 2004-08-04 14:33:00 UTC
*** Bug 86484 has been marked as a duplicate of this bug. ***