I just verified with a clean install in VirtualBox that the latest version has the same problem and that the version before that works as expected.
While doing that I noticed that it is somewhat less of a problem in the VM because everything runs so much slower in it. So I can actually visually see that when the window switcher comes up, it first starts with the windows in correct order and then a few milliseconds after it sorts them so that the currently focused window is selected instead of the next window. Which means that if I release the shortcut keys quick enough, everything works correctly. I think the changes to SwitcherController here: http://bazaar.launchpad.net/~sil2100/unity/ubuntu_5.14/revision/703 are probably what is causing the problem. Although I think it is likely that these changes not directly cause, but some other side effect somewhere is the root cause that wasn't noticed before and now is. Maybe std::sort(results.begin(), results.end(), CompareSwitcherItemsPriority); in Controller::Show is called twice for some reason? Or the reordering of lines in Controller::ShowView or Controller::ConstructView might be the problem (although I would wonder why those should be called more then once)? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1035668 Title: Application window switching does not work as expected. Need to press shortcut twice to switch. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1035668/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs