diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-17 14:55:36 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-17 15:01:59 +0100 |
| commit | abacdaccb6a1ef55bd85b66e10caaa217458400b (patch) | |
| tree | 029e80b94670150064b74880add4c44e318a0ca3 /src/draw.c | |
| parent | 8419a503313f4e734465b726f897833e094c91b3 (diff) | |
Add group shrink animation
Diffstat (limited to 'src/draw.c')
| -rw-r--r-- | src/draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -175,9 +175,7 @@ static void layout_set_text(Layout *layout, PangoFontDescription *desc, int heig // If there is only one glyph the button should be round size_t text_l = g_utf8_strlen(text, -1); - layout->width = text_l == 1 ? height : layout->text_w + height; - layout->height = height; } static void compute_width(Drawer *draw, Window *win) @@ -208,6 +206,7 @@ static GList *compute_group_layout(Drawer *draw, GList *btns, int bx, bool root) layouts = g_list_prepend(layouts, layout); layout->btn = btn; + layout->height = draw->height; layout->line_w = btn->line_width; layout->x_pad = btn->x_pad; layout->y_pad = btn->y_pad; @@ -234,7 +233,6 @@ retry: Layout *last = g_list_last(layout->children)->data; layout->width = last->x + last->width - bx; - layout->height = draw->height; // FIXME: Temporary solution to make the antialiasing (or the circles not // overlapping correctly) problem less noticeable |
