From fb57d5998a755b994dcae506eefb3b2cd9671dd1 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 23 Dec 2014 21:35:05 -0200 Subject: [PATCH] month-view: better handle overflow background draw --- src/gcal-month-view.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index 40895cbf..e460f447 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -1240,9 +1240,12 @@ gcal_month_view_draw (GtkWidget *widget, pango_layout_get_pixel_size (overflow_layout, &font_width, &font_height); y_value = cell_height * (row + 1 + first_row_gap) - font_height - padding.bottom + start_grid_y; - if (gtk_widget_is_visible (priv->overflow_popover) && priv->hovered_overflow_indicator == i) - gtk_render_background (context, cr, cell_width * column, y_value - padding.bottom, - cell_width, font_height + padding.bottom * 2); + if ((!gtk_widget_is_visible (priv->overflow_popover) && priv->hovered_overflow_indicator == i) || + gtk_widget_is_visible (priv->overflow_popover)) + { + gtk_render_background (context, cr, cell_width * column, y_value - padding.bottom, + cell_width, font_height + padding.bottom * 2); + } gtk_render_layout (context, cr, cell_width * column, y_value, overflow_layout);