For those ended up like me in loosing my top windows bar in Ubuntu 11.04, here I find a fix from Ubuntu Genius.
If you occasionally find your title-bars or window borders missing from your programs and folder windows, it’s actually quite easy to fix, and there’s no need to reboot.
You will need to edit a Compiz-Fusion setting, so open System > Preferences > CompizConfig Settings Manager; if it isn’t installed, just run sudo apt-get install compizconfig-settings-manager in a terminal.
Once open, scroll down to the Effects section, where you will see Window Decoration is not enabled. Simply click the check box to the left of it, and you should see your window borders reappear.
Keep this in mind for the future, as certain things can upset Compiz-Fusion and you’ll likely be without title-bars again (especially if you’re playing around with settings, as enabling one Compiz plugin can disable another).