]> uap-core.de Git - mizunara.git/commitdiff
dragging a single item cancels the selection master
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 29 Jan 2025 20:19:45 +0000 (21:19 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Wed, 29 Jan 2025 20:19:45 +0000 (21:19 +0100)
mizunara/gtk-filesview.c

index 52fb8a026e7de3bdde27d916197b829fcdc65403..ff98435fe941914b677bd9c48a27866d0048b857 100644 (file)
@@ -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;