diff --git a/src/frame.c b/src/frame.c index 68e1eed..d581ec1 100644 --- a/src/frame.c +++ b/src/frame.c @@ -394,7 +394,13 @@ frameCreateTitlePixmap (Client * c, int state, int left, int right, xfwmPixmap * hoffset = w3 - logical_rect.width - screen_info->params->title_horizontal_offset; break; case ALIGN_CENTER: - hoffset = (w3 / 2) - (logical_rect.width / 2); + /* It looks better if the title is centered in the absolute + * center of the window, rather than in the center of the + * frame allotted to it. + */ + temp = frameWidth (c) - frameTopLeftWidth (c, state) - + frameTopRightWidth (c, state); + hoffset = (temp / 2) - (logical_rect.width / 2) - w1 - w2; break; } if (hoffset < screen_info->params->title_horizontal_offset)