Bug 237044 - Wrong window gets focus when the current window is closed
Summary: Wrong window gets focus when the current window is closed
Status: RESOLVED DUPLICATE of bug 183911
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 01:12 UTC by Alexander Wauck
Modified: 2010-05-10 01:22 UTC (History)
0 users

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 Alexander Wauck 2010-05-10 01:12:43 UTC
Version:            (using KDE 4.4.2)
Compiler:          gcc 4.4.3 
OS:                Linux
Installed from:    Ubuntu Packages

Steps to reproduce:
1. Open application A (must support multiple windows).
2. Open a second window in application A.
3. Open application B.
4. Make one of the application A windows be on top.  If you were to press the window-switching shortcut now, application B would be on top.  That is, the lowest window is one of application A's window, the middle window is application B's window, and the top window is application A's other window.
5. Close the top window.
6. Now, the one window from application B is on top, but the other window from application A has keyboard focus!  This is bad!

Here's a scenario where this is problematic.  I have two Firefox windows.  In between them in the window order is k3b.  I've been browsing for a while in the Firefox window that is on top, and I have forgotten about k3b.  I close the top Firefox window.  I see the k3b window and press Crtl-Q to close it.  Firefox closes instead.  FAIL.

In general, any window that is automatically made topmost should also be given keyboard focus.
Comment 1 Thomas Lübking 2010-05-10 01:22:34 UTC

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