diff options
Diffstat (limited to 'calendar/gui/e-day-view-top-item.c')
-rw-r--r-- | calendar/gui/e-day-view-top-item.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index 6d5ea60854..ac2d6bfb62 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -229,7 +229,8 @@ e_day_view_top_item_draw (GnomeCanvasItem *canvas_item, item_height - 3); /* Draw the selection background. */ - if (day_view->selection_start_col != -1) { + if (GTK_WIDGET_HAS_FOCUS (day_view) + && day_view->selection_start_col != -1) { gint start_col, end_col, rect_x, rect_y, rect_w, rect_h; start_col = day_view->selection_start_col; |