From 616745a4b81e701bfc2d8df1c4fbab3a30016791 Mon Sep 17 00:00:00 2001 From: Reuben Green Date: Fri, 27 Mar 2020 15:32:12 +0000 Subject: [PATCH] Allow drag-and-drop of multiple files in icon view Fixes a bug introduced by commit 9801a67b3a165fc1be81b520ec28b5529a9ab822 which broke multiple file drag-and-drop in icon and compact view. Bug 2487 --- thunar/thunar-abstract-icon-view.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c index f8c9c350..d8f42117 100644 --- a/thunar/thunar-abstract-icon-view.c +++ b/thunar/thunar-abstract-icon-view.c @@ -496,14 +496,7 @@ thunar_abstract_icon_view_button_press_event (ExoIconView *view, gboolean in_tab; const gchar *action_name; - if (event->type == GDK_BUTTON_PRESS && event->button == 1) - { - /* we don't unselect all other items if Control or Shift is active */ - if ((event->state & GDK_CONTROL_MASK) == 0 && (event->state & GDK_SHIFT_MASK) == 0) - exo_icon_view_unselect_all (view); - return FALSE; - } - else if (event->type == GDK_BUTTON_PRESS && event->button == 3) + if (event->type == GDK_BUTTON_PRESS && event->button == 3) { /* open the context menu on right clicks */ if (exo_icon_view_get_item_at_pos (view, event->x, event->y, &path, NULL)) -- 2.25.1