From 4d63a91c0ad9da7bc851df1bd8700737de2ec17f Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 2 Apr 2026 13:38:49 -0400 Subject: fixed wrong drag&drop activation when in single click mode when calling the parent button_press_event function a button released event could be emitted, in that case stop the drag&drop action. Backported from https://gitlab.gnome.org/GNOME/file-roller/-/commit/279b76d6 Fixes #547 --- src/fr-window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fr-window.c') diff --git a/src/fr-window.c b/src/fr-window.c index d1ce30c..110367b 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -4153,6 +4153,11 @@ file_list_drag_begin (GtkWidget *widget, if (window->priv->activity_ref > 0) return FALSE; + if (window->priv->path_clicked != NULL) { + gtk_tree_path_free (window->priv->path_clicked); + window->priv->path_clicked = NULL; + } + g_free (window->priv->drag_destination_folder); window->priv->drag_destination_folder = NULL; -- cgit v1.2.1