diff options
| author | Federico Angelilli <code@fedang.net> | 2024-03-14 15:44:41 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-03-14 15:44:41 +0100 |
| commit | c7a8b75933b3bd963e19f1a9d85f3b610a08e669 (patch) | |
| tree | 91de053f1caaf655eaeb1bbd3458c49362b22e2a /src/draw.c | |
| parent | 93c4dc6893e733f563e70c315537922d55adfab2 (diff) | |
Change animation code and refactor state
Diffstat (limited to 'src/draw.c')
| -rw-r--r-- | src/draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -99,6 +99,11 @@ void draw_paint(Drawer *draw, Window *win) pango_cairo_update_layout(cr, layout->pl); pango_cairo_show_layout(cr, layout->pl); } + + if (layout->btn->anim != NULL && !layout->btn->anim->paint(layout->btn->anim, cr, layout)) { + animation_destroy(layout->btn->anim); + layout->btn->anim = NULL; + } } cairo_destroy(cr); |
