From 573aaf7edeab41ee8f50400b0ecb952a5527d067 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 20 Apr 2003 07:08:40 +0000 Subject: make the icon larger than the buttons by one pixel in each direction, this makes it as tall as the label and lets it fit more image in --- openbox/frame.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'openbox/frame.c') diff --git a/openbox/frame.c b/openbox/frame.c index 345eb1f2..3b900936 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -140,7 +140,7 @@ Frame *frame_new() XResizeWindow(ob_display, self->iconify, theme_button_size, theme_button_size); XResizeWindow(ob_display, self->icon, - theme_button_size, theme_button_size); + theme_button_size + 2, theme_button_size + 2); XResizeWindow(ob_display, self->close, theme_button_size, theme_button_size); XResizeWindow(ob_display, self->desk, @@ -497,7 +497,7 @@ static void layout_title(Frame *self) if (!(self->client->decorations & Decor_Icon)) break; if (n) { *lc = ' '; break; } /* rm duplicates */ n = TRUE; - self->label_width -= theme_button_size + theme_bevel + 1; + self->label_width -= theme_button_size + 2 + theme_bevel + 1; break; case 'D': if (!(self->client->decorations & Decor_AllDesktops)) break; @@ -555,10 +555,10 @@ static void layout_title(Frame *self) if (!n) break; self->icon_x = x; RECT_SET(self->a_icon->area, 0, 0, - theme_button_size, theme_button_size); + theme_button_size + 2, theme_button_size + 2); XMapWindow(ob_display, self->icon); - XMoveWindow(ob_display, self->icon, x, theme_bevel + 1); - x += theme_button_size + theme_bevel + 1; + XMoveWindow(ob_display, self->icon, x, theme_bevel); + x += theme_button_size + 2 + theme_bevel + 1; break; case 'D': if (!d) break; -- cgit v1.2.3