Every now and then the window decoration on thunderbird, firefox etc will disappear when I restore the window from minimized. Luckily, there is an easy workaround for this which is to run the following command:#
DISPLAY=:0 compiz --replace &
I would recommend putting this as a script in your path called
compiz-replace, or set up an alias.