Wrong window focused after closing application in the multi-window case (failed test case)

Bug #943900 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
New
Undecided
Unassigned

Bug Description

Couldn't find a bug opened for this regression. The bug is related to checkbox-unity test case alttab/windows-focus-betweenapps-multiple-one. When an application is started with more than one window and then another application is opened, focus change back to the multi-window app and one of its windows is closed, the specification says that focus should go to the other windows of the multi-window app. But in reality, it moves to the last focused window.

How to reproduce (according to the test case):
 1. Start Firefox, create two windows (File > New Window)
 2. Start GEdit, make sure GEdit window is the active one
 3. Use alt + tab to switch to Firefox
    -> All Firefox windows should be raised. One should be focused [2D: fail]
 4. Close the window having the focus

Expected result:
The focus should go to the other Firefox window, not to the GEdit window.

Actual result:
The focus goes to the GEdit window.

Reported by more than one person and reproduced on my system.

Unity version: 5.4.0+bzr2041ubuntu0+654
Compiz version: 1:0.9.7.0~bzr3025-0ubuntu1ppa1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.