summaryrefslogtreecommitdiff
path: root/src/themes/coco
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/coco')
-rw-r--r--src/themes/coco/coco-theme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index 3101ecc..584c3a6 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -144,6 +144,9 @@ fill_background(GtkWidget *widget, WindowData *windata, cairo_t *cr)
static void
draw_pie(GtkWidget *pie, WindowData *windata, cairo_t *cr)
{
+ if (windata->timeout == 0)
+ return;
+
gdouble arc_angle = 1.0 - (gdouble)windata->remaining / (gdouble)windata->timeout;
cairo_set_source_rgba (cr, 1.0, 0.4, 0.0, 0.3);
cairo_move_to(cr, PIE_RADIUS, PIE_RADIUS);