From: Olaf Wintermann Date: Wed, 29 Jan 2025 20:19:45 +0000 (+0100) Subject: dragging a single item cancels the selection X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;p=mizunara.git dragging a single item cancels the selection --- diff --git a/mizunara/gtk-filesview.c b/mizunara/gtk-filesview.c index 52fb8a0..ff98435 100644 --- a/mizunara/gtk-filesview.c +++ b/mizunara/gtk-filesview.c @@ -495,6 +495,14 @@ static void drag_update_cb( { MzFilesView *view = user_data; if(view->drag_file) { + if(view->selection_count > 0) { + view->drag_col = -1; + view->drag_row = -1; + view->drag_start_col = -1; + view->drag_start_row = -1; + view->update_selection = 1; + gtk_widget_queue_draw(GTK_WIDGET(view)); + } return; } view->drag_width = x;