Bug 113145

Summary: kwin should not popup 'terminate' dialog if the target window opened a new dialog
Product: [Plasma] kwin Reporter: Thomas Zander <zander>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: CVS   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: example

Description Thomas Zander 2005-09-23 14:25:22 UTC
Version:            (using KDE Devel)

In a new KDE installation I still get the warning dialogs that, for example, kopete shows when you close it for the first time (see attached image)
This means that it can take considerable time before the user actually OKs the dialog and the main kopete window is actually closed after the user clicks on the 'X' button.

Due to this normal interaction the reaction of kwin to pup up a request to terminate the closing application is not very user friendly and should be avoided.

I guess that the opening of a dialog with as a parent the closing window should stop the timer to popup the kwin warning dialog.
Comment 1 Thomas Zander 2005-09-23 14:26:45 UTC
Created attachment 12671 [details]
example
Comment 2 Thomas Zander 2005-09-26 11:37:20 UTC
I just noted that when I click the close on a konqueror window and get a popup to ask me if I want to close one tab instead of the whole app I can choose to close just the tab.
After some time kwin pops up the question to terminate konqueror!

Setting priority to very high since this is IMO a bug that can not be present in the released 3.5 version.
Comment 3 Lubos Lunak 2005-10-03 17:10:28 UTC
(That's what severity is for, not priority.)
It of course checks for this case. The dialog really comes up only in cases when the application does not respond. Worksforme. Given your previous bugreport, there's probably something strange with your setup.
Comment 4 Thomas Zander 2005-10-18 18:15:25 UTC
It now works correctly.
Must have been a flaky cvs-version of x.org...
Comment 5 Patrick ALLAERT 2006-08-10 09:32:16 UTC
Please, REOPEN this bug.

I am experiencing the same problem on my Gentoo/AMD64 box from a long time now. Confirmed on KDE 3.5.2, 3.5.3 and 3.5.4.

Every time I click on the close button and that the application does not close immediately (because of a save|discard confirmation dialog or other). A dialog pops up asking me to terminate the non responding application.

I can confirmed this with Kcontrol, try to change something without applying changes and close the application, with Kile, when I try to exit from a 'View' like ViewPDF, ViewDVI,...

It appears that some people have the same problem but always only on AMD64!

For more info, look at my original bug submission @ Gentoo:
http://bugs.gentoo.org/show_bug.cgi?id=130272
Comment 6 Thomas Zander 2006-08-10 09:46:27 UTC
Indeed, I can currently perfectly reproduce it like this.

Start konq.
Create a new tab.
Press close button on kwin decoration.
On the 'quit or close tab' choose cancal or close tab.

Wait 4 seconds
And there it is; 

Window with title "about:blank - Konqueror" is not responding. This window belongs to application konqueror (PID=22917, hostname=localhost).
Do you wish to terminate this application? (All unsaved data in this application will be lost.)
Comment 7 Thomas Zander 2006-08-10 10:11:48 UTC
Using 3.5 branch rev:
Following usecase from previous comment.

[press close on decoration]

kwin: User timestamp, initial:18446744073560463441
kwin: User timestamp, ASN:18446744073560463441
kwin: User timestamp, final:'ID:41945907;WMCLASS:konqueror:konqueror;Caption:Confirmation - Konqueror':18446744073560463441
kwin: Activation: Belongs to active application

[got close-tab/quit dialog, pressed cancel]

kwin: Ping timeout:about:blank - Konqueror
kwin: Kill process:22917(localhost)
kwin: User timestamp, initial:18446744073560573611
kwin: User timestamp, ASN:18446744073560573611
kwin: User timestamp, final:'ID:25165829;WMCLASS:kwin_killer_helper:kwin_killer_helper;Caption:Warning - KWin':18446744073560573611
kwin: Activation, compared:'ID:25165829;WMCLASS:kwin_killer_helper:kwin_killer_helper;Caption:Warning - KWin':18446744073560573611:18446744073560576252:false

[got the killer, press cancel]

kwin: Killer exited

Hope that helps.
Comment 8 Lubos Lunak 2006-08-10 16:11:15 UTC
See comment #9 in bug #129410 - works fine with stock Qt/KDE on x86_64 here.


*** This bug has been marked as a duplicate of 129410 ***