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.
Just to update, I removed the "screen- >focusDefaultWi ndow ();" 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.