From 637d315fb5c8ca821d68d730b30fa764d6b9812b Mon Sep 17 00:00:00 2001 From: DualFroz Date: Wed, 14 Oct 2026 18:05:45 +0200 Subject: [PATCH] nemo-list-view.c: Open items in a new tab with a single middle-click. In double-click mode the list view only handled the middle button as part of a double-click. Activate on middle-button release regardless of the click policy, as the icon view does. Fixes #3339 --- src/nemo-list-view.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nemo-list-view.c b/src/nemo-list-view.c index 1411c42..253d0c4 100644 --- a/src/nemo-list-view.c +++ b/src/nemo-list-view.c @@ -456,7 +456,7 @@ nemo_list_view_did_not_drag (NemoListView *view, } } - if ((click_policy == NEMO_CLICK_POLICY_SINGLE) + if ((click_policy == NEMO_CLICK_POLICY_SINGLE || event->button == 2) && !button_event_modifies_selection(event)) { if (event->button == 1) { activate_selected_items (view); @@ -1030,7 +1030,7 @@ handle_icon_double_click (NemoListView *view, GtkTreePath *path, GdkEventButton return FALSE; } - if (event->button == GDK_BUTTON_SECONDARY) { + if (event->button == GDK_BUTTON_MIDDLE || event->button == GDK_BUTTON_SECONDARY) { return FALSE; } @@ -1042,8 +1042,6 @@ handle_icon_double_click (NemoListView *view, GtkTreePath *path, GdkEventButton if (!button_event_modifies_selection (event)) { if (event->button == 1) { activate_selected_items (view); - } else if (event->button == 2) { - activate_selected_items_alternate (view, NULL, TRUE); } return TRUE;