all repos — openbox @ 573aaf7edeab41ee8f50400b0ecb952a5527d067

openbox fork - make it a bit more like ryudo

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
Dana Jansens danakj@orodu.net
commit

573aaf7edeab41ee8f50400b0ecb952a5527d067

parent

d3ce8451bca09e96b3aea0f891c4ed51b83cd5f9

2 files changed, 7 insertions(+), 7 deletions(-)

jump to
M openbox/frame.copenbox/frame.c

@@ -140,7 +140,7 @@ XResizeWindow(ob_display, self->max, theme_button_size, theme_button_size);

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 @@ case 'N':

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 @@ case 'N':

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;
M openbox/framerender.copenbox/framerender.c

@@ -162,13 +162,13 @@ if (self->icon_x < 0) return;

if (self->client->nicons) { Icon *icon = client_icon(self->client, - theme_button_size, theme_button_size); + theme_button_size + 2, theme_button_size + 2); a->texture[0].type = RGBA; a->texture[0].data.rgba.width = icon->width; a->texture[0].data.rgba.height = icon->height; a->texture[0].data.rgba.data = icon->data; RECT_SET(self->a_icon->texture[0].position, 0, 0, - theme_button_size,theme_button_size); + theme_button_size + 2, theme_button_size + 2); } else a->texture[0].type = NoTexture;