@Paul: The great problem here is that even a simple theme (see /usr/share/themes/Simple/metacity-1/metacity-theme-1.xml) uses relativelly complex operations to determine how the buttons should be drawn.
Metacity window manager already parses all this info and renders the window decoration button, but I can't find a way to get this parsed info as an image.
@Paul: The great problem here is that even a simple theme (see /usr/share/ themes/ Simple/ metacity- 1/metacity- theme-1. xml) uses relativelly complex operations to determine how the buttons should be drawn.
Metacity window manager already parses all this info and renders the window decoration button, but I can't find a way to get this parsed info as an image.