Problems of focus improved a lot with last Compiz / Unity updates, but one of them is still not fixed for me, when there are 2 windows of an application running, one maximized in the background, another which takes the foreground and is closed.
As explained in duplicate https://bugs.launchpad.net/ubuntu/+source/unity/+bug/813714 Ex: I run Gpodder, maximized, only one instance of the program, and launch the update verification. During this time, I go back to Firefox by clicking on its icon on Unity dock, without minimizing Gpodder, and continue my surf. Suddendly, Gpodder comes to the foreground with 2 windows : the first one, the maximized program, and another one on first plan which tells me there are updates available with options buttons (Cancel - Download) ; this window, which is not maximized on screen, has well the focus. I click on "Download", updates are downloading, so the second window of Gpodder closes. Logically, as it is the behavior in Unity, focus on the dock re-goes to the last application which had it before the new window took it, ie Firefox. Problem : it is still the main Gpodder window maximized which appears in front of my screen. But of course, global menu is the one of Firefox and if I click on "close" button in order to close Gpodder, it's Firefow which disappears. Again, I have to click anywhere on Gpodder window to re-focus it, and then close or click on Firefox icon. This also occurs sometimes with Synaptic and widow of downloads, too. I hope I'm clear, please see screenshot taken just after I clicked on "Download" on dialog window of Gpodder and after this one closed, focus is on Firefox (right arrow on dock), global menu is Firefox but on my screen, the main program I see maximized on foreground is Gpodder... ** Attachment added: "Unity-Focus-GP.png" https://bugs.launchpad.net/ubuntu/+source/unity/+bug/796513/+attachment/2527128/+files/Unity-Focus-GP.png -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/796513 Title: Switching to application with multiple windows alternates the target windows To manage notifications about this bug go to: https://bugs.launchpad.net/hundredpapercuts/+bug/796513/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs