After switching to Ubuntu 9.10, I noticed, that my preferred window border theme C2 didn't show the application's icons
in the top left of the window. Getting them back is a matter of changing the x/y entries in the section "menu_button_icon"
in the file metacity-theme-1.xml
in the theme's folder under ~/.themes/c2/metacity-1/metacity-theme-1.xml
:
<draw_ops name="menu_button_icon"> <!-- icon x="0" y="0" width="width" height="height"/ --> <icon x="(width-mini_icon_width)/2-2" y="(height-mini_icon_height)/2+1" width="mini_icon_width" height="mini_icon_height"/> </draw_ops> <draw_ops name="menu_button_icon_unfocused"> <!-- icon x="0" y="0" width="width" height="height" alpha="0.5"/ --> <icon x="(width-mini_icon_width)/2-2" y="(height-mini_icon_height)/2+1" width="mini_icon_width" height="mini_icon_height" alpha="1.0"/> </draw_ops>
While experimenting, it is sufficient to keep the theme window (System / Preferences / Appearance / Theme / Customize / Window Border) open. To reload the theme, you just activate another window style and then you reactivate your style.
$ gconftool --type string --set /apps/metacity/general/button_layout "menu:minimize,maximize,close"