views/month: Clear selection after showing overflow

This should prevent selection after clicking any overflow button.
This commit is contained in:
Georges Basile Stavracas Neto
2023-09-13 09:17:12 -03:00
parent 94ba080d38
commit f1767037ac
+6
View File
@@ -1047,6 +1047,12 @@ on_month_row_show_overflow_cb (GcalMonthViewRow *row,
gcal_month_popover_set_date (popover, gcal_month_cell_get_date (cell));
gcal_month_popover_popup (popover);
/* FIXME: here we forcefully disable selection, but I wonder if there's a better
* way to do it.
*/
gtk_event_controller_set_propagation_phase (self->motion_controller, GTK_PHASE_NONE);
gcal_view_clear_marks (GCAL_VIEW (self));
GCAL_EXIT;
}