X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Ftheme.c;h=4c38dbd2f8ad25f665649717e79ac5ff9b5f070a;hb=310ea89e0ebb53e27550440960305ffc446ae8ce;hp=c31ca1121f812abfabdbf87bfe0569be08d7dfe2;hpb=ec304c9e433e4b1cedf924ca64d783f05db7d42d;p=chaz%2Fopenbox diff --git a/render/theme.c b/render/theme.c index c31ca112..4c38dbd2 100644 --- a/render/theme.c +++ b/render/theme.c @@ -987,8 +987,6 @@ RrTheme* RrThemeNew(const RrInstance *inst, gchar *name, } theme->button_size = theme->label_height - 2; theme->grip_width = 25; - theme->top_grip_height = MAX(theme->handle_height, - theme->title_height / 4); return theme; } @@ -1307,8 +1305,8 @@ static gboolean find_point(ParseState *ps, xmlNodePtr n, gchar *names[], { if ((n = find_node(n, names))) { gint a, b; - if (parse_attr_int("horizontal", n, &a) && - parse_attr_int("vertical", n, &b) && + if (parse_attr_int("x", n, &a) && + parse_attr_int("y", n, &b) && a >= lowx && a <= upx && b >= lowy && b <= upy) { *x = a; *y = b;