Hello everyone!
I am trying to edit a metacity theme to make it center the title.
I looked on the web and all the answers I found were like "x=(width-title_width)/2.
The problem with that setting is it was already like that in the metacity theme file, but the titles were not centered.
I think the main cause of it is the close, maximize and minimize buttons, who pushes the title some pixels to the right (I set those buttons to the left).
Then I tried to cheat a little bit and set x=((width-title-width)/2)-36, to counter the displacement caused by the window buttons. While it was perfect for many windows, it is broken if a window does not have the maximize button for example, as the space taken by the windows buttons are not 36 pixels anymore, and the title is then misplaced a little bit to the left.
Does anyone know a way to set the x value of the title such that it is always centered, regardless of the number of window buttons the current window is displaying?
Thanks,
Dave
PS: English is not my native language, sorry for the potential errors I made... =/
Bookmarks