From 6412fba7fd1a30465cb01b0e3ebcdf47680e9f02 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 23:52:53 +0000 Subject: [PATCH] fix positioning of the icon --- openbox/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbox/frame.c b/openbox/frame.c index 1f45ea8b..5fd36714 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -728,9 +728,9 @@ static void layout_title(ObFrame *self) } else if (*lc == 'N') { if (firstcon) *firstcon = OB_FRAME_CONTEXT_ICON; if ((self->icon_on = is_button_present(self, lc, i))) { - /* icon gets extra padding */ + /* icon is bigger than buttons */ self->label_width -= bwidth + 2; - self->icon_x = x + (i * 1); + self->icon_x = x; x += i * (bwidth + 2); } } else if (*lc == 'D') { -- 2.39.2