Just to update, I removed the "screen->focusDefaultWindow ();" line and recompiled compiz and I've been using it for more than a month and this solved the problem and I could not observe any side effect. So I think this code could probably be removed at least when using unity.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1459671 Title: focus goes to the wrong window after a modal dialog is closed To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1459671/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs