From c2a97b896f0497660dae273f72943a73caf2220a Mon Sep 17 00:00:00 2001
From: Alexander Schwinn <alexxcons@xfce.org>
Date: Sun, 29 Aug 2021 17:28:50 +0200
Subject: [PATCH] Fix file-icon update when file is cut (Issue #588)

Worked in icn-view before, now works as well in list view.
---
 thunar/thunar-window.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index 0a2a25843..30a0d7db6 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1785,6 +1785,16 @@ thunar_window_action_switch_previous_tab (ThunarWindow *window)
 
 
 
+static void
+thunar_window_clipboard_manager_changed (GtkWidget *widget)
+{
+  ThunarWindow *window = THUNAR_WINDOW (widget);
+
+  thunar_window_reload (window, FALSE);
+}
+
+
+
 static void
 thunar_window_realize (GtkWidget *widget)
 {
@@ -1798,7 +1808,7 @@ thunar_window_realize (GtkWidget *widget)
    */
   window->clipboard = thunar_clipboard_manager_get_for_display (gtk_widget_get_display (widget));
   g_signal_connect_swapped (G_OBJECT (window->clipboard), "changed",
-                            G_CALLBACK (gtk_widget_queue_draw), widget);
+                            G_CALLBACK (thunar_window_clipboard_manager_changed), widget);
 }
 
 
-- 
GitLab