How to remove window's title bars?

I know I can disable windows decoration via CCSM, which I currently do.

Im asking if there's way to remove title bars without losing windows decorations and/or the ability to resize with the mouse.

Thanks.


Solution 1:

If you want to get rid of the titlebar, and not just the title, this looks like an unusual request which might similarly require an unusual solution, e.g try and remove title bar elements in the Window Theme you use by editing the file "metacity-theme-1.xml" and removing lines for the titlebar, buttons, etc. -- which might need some trial-and-error.

Solution 2:

Sadi was right.

So, in metacity-theme-1.xml, in the 2 blocks below, I added has_title="false" and changed some values. And voilà.

<frame_geometry name="frame_geometry_normal" has_title="false" title_scale="medium" rounded_top_left="true" rounded_top_right="true" rounded_bottom_left="false" rounded_bottom_right="false">
  <distance name="left_width" value="1"/>
  <distance name="right_width" value="1"/>
  <distance name="bottom_height" value="1"/>
  <distance name="left_titlebar_edge" value="1"/>
  <distance name="right_titlebar_edge" value="1"/>
  <distance name="button_width" value="0"/>
  <distance name="button_height" value="0"/>
  <distance name="title_vertical_pad" value="1"/>
  <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  <border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>

<frame_geometry name="geometry_maximized" has_title="false" rounded_top_left="false" rounded_top_right="false" rounded_bottom_left="false" rounded_bottom_right="false">
  <distance name="left_width" value="0"/>
  <distance name="right_width" value="0"/>
  <distance name="bottom_height" value="0"/>
  <distance name="left_titlebar_edge" value="0"/>
  <distance name="right_titlebar_edge" value="0"/>
  <distance name="button_width" value="0"/>
  <distance name="button_height" value="0"/>
  <distance name="title_vertical_pad" value="0"/>
  <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  <border name="button_border" left="0" right="0" top="0" bottom="0"/>
</frame_geometry>