No Ubuntu, isso é controlado pelo seu tema. Se você está executando o padrão ubuntu, então isso é metacity / Human. Você pode encontrar este tema em /usr/share/themes/Human/metacity-1/ .
O tema real é definido no arquivo metacity-theme-1.xml.
Você pode copiar este tema para ~/.themes/Human/metacity-1/ e editar o arquivo xml. Editando as alturas da geometria normal & mudando a fonte, você pode cortar muito, mas não até 2 pixels. Alternativamente, se você não se importa em mudar os temas, há um tema de metacity que elimina as barras de título para janelas maximizadas.
Se você quiser instalar o compiz , siga as instruções abaixo para remover completamente a barra de título de acordo com a regra que você define (o link explica como fazê-lo quando uma janela é maximizada).
Instruções do cache do google de este site :
You can add a rule to Compiz to hide the
titlebar on maximized windows. Here’s how:
Open the compiz config panel (it’s called ccsm; install it if you don’t
have it already (sudo apt-get install compizconfig-settings-manager). Go to
“Window Decorations”.
The next to last line is “Decoration Windows”. The default
is “any”, which means that any window gets decoration.
We want to turn off decoration for maximized windows. So we’re going
to replace any with !state=maxvert.
This removes window decorations for windows that are maximized
vertically (normal maximization is actually vertical maximization (“maxvert”) and
horizontal maximization (“maxhorz”)).
There you have it–your maximized windows don’t have any titlebars. If
you need to do anything with them (minimize, close, etc), you can use
Alt+space and then hit the hotkey for whatever you want: n=minimize;
x=unmaximize; c=close; etc.
Existe um conselho semelhante no fórum do compiz .