I just tried again. You need to have LIM on: Settings -> Appearance -> Behaviour -> "In the window's title bar", then this bug still happens (current wily here). Without this then the global bar doesn't have controls to close the window.
** Changed in: unity Status: Incomplete => New ** Changed in: unity (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of DX Packages, which is subscribed to unity in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1429929 Title: Wrong window title displayed when maximised background window is closed Status in Unity: New Status in unity package in Ubuntu: New Bug description: 1. Maximise two windows 2. Open another one in front of them, not maximised 3. Click on the 'x' at the top left of the screen to close the second window maximised in (1) 4. The panel still tells you the closed window's title, not the first window's. ProblemType: Bug DistroRelease: Ubuntu 15.04 Package: unity 7.3.1+15.04.20150227-0ubuntu1 ProcVersionSignature: Ubuntu 3.19.0-7.7-generic 3.19.0 Uname: Linux 3.19.0-7-generic x86_64 ApportVersion: 2.16.2-0ubuntu1 Architecture: amd64 CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins' CurrentDesktop: Unity Date: Mon Mar 9 16:29:05 2015 InstallationDate: Installed on 2012-10-07 (882 days ago) InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20121007) SourcePackage: unity UpgradeStatus: Upgraded to vivid on 2013-05-07 (671 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1429929/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp