Bug 228714

Summary: Strange choice of window focus after closing a window
Product: [Plasma] kwin Reporter: Neil Skrypuch <kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Neil Skrypuch 2010-02-27 09:21:06 UTC
Version:            (using KDE 4.4.0)
Compiler:          gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) 
OS:                Linux
Installed from:    Gentoo Packages

It appears that when closing a window, the focus is switched to the last window that was created, not the last window that had focus.

1. Close all open windows, or switch to an empty virtual desktop.
2. Launch kwrite
3. Launch konsole
4. Change window focus to kwrite
5. Launch another konsole.
6. Close the konsole launched in step 5.
7. Observe that konsole is in focus, not kwrite.

It's worth noting that if you try the above steps with konsole, konsole and konsole (instead of kwrite, konsole and konsole), everything works correctly.
Comment 1 Martin Flöser 2010-02-27 09:24:55 UTC

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