From: Olaf Wintermann Date: Wed, 23 Jul 2025 19:40:52 +0000 (+0200) Subject: fix accidental selection X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;p=mizunara.git fix accidental selection --- diff --git a/mizunara/gtk-filesview.c b/mizunara/gtk-filesview.c index aa6f024..ce15178 100644 --- a/mizunara/gtk-filesview.c +++ b/mizunara/gtk-filesview.c @@ -336,7 +336,7 @@ void mz_files_view_snapshot(GtkWidget *widget, GtkSnapshot *snapshot) { &highlight_rect); GskRenderNode *highlight_clip_node = gsk_rounded_clip_node_new(highlight_node, &highlight_clip); gtk_snapshot_append_node(snapshot, highlight_clip_node); - } else { + } else if(view->update_selection) { view->items[i].isselected = 1; selection_index = i; selection_count++; @@ -757,6 +757,7 @@ static gboolean key_pressed( view->items[new_selected_index].isselected = TRUE; view->last_cursor_index = new_selected_index; + int update = view->update_selection; view->selection_count = 1; } }