I'm using Compiz, with the Spidey theme for borders, in LM Mate Maya. Everything works more or less, but I'm getting a strange focus glitch which I don't know how to fix. If a window is minimized, and I click on its icon in the task bar, then the window pops up but it is not in focus, as it should be. I have to click the window again in order for it to receive the focus. This is different from the way Mate behaves without Compiz. Without Compiz when one deiconifies a window by clicking on its panel icon, the window pops up and receives focus at the same time. This latter behaviour seems to be the most logical and convenient one.
I've played with the Compiz settings for focus policy, but so far to no effect. Has anyone solved this problem?