The bug really does exist, at least in 10.04. The screencast shows what is happening. The animation for "focus" in the compiz animation plugin is set to "Dodge" to make the behavior more apparent. When the rear window is closed using its close button, the front window "Dodges" and the back window gets focus before closing.
** Attachment added: "Bad focus behavior" https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/189329/+attachment/2136516/+files/screencast1.ogv -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/189329 Title: Undesirable focus while closing or minimizing -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs