iconview: a double click works after a click on another item

This commit is contained in:
Daemonratte 2026-10-16 06:40:50 +02:00
commit 21e2004e90
No known key found for this signature in database

View file

@ -2244,8 +2244,9 @@ gtk_icon_view_button_press (GtkWidget *widget,
icon_view->priv->press_start_y = event->y;
}
if (!icon_view->priv->last_single_clicked)
icon_view->priv->last_single_clicked = item;
/* the item of this click, not of one long ago, or a double click
* after a click on another item does nothing */
icon_view->priv->last_single_clicked = item;
/* cancel the current editing, if it exists */
gtk_icon_view_stop_editing (icon_view, TRUE);