OLE2 DND: Check if move is supported
authorLuca Bacci <luca.bacci982@gmail.com>
Wed, 29 Mar 2023 15:52:46 +0000 (17:52 +0200)
committerLuca Bacci <luca.bacci982@gmail.com>
Thu, 6 Apr 2023 12:18:30 +0000 (14:18 +0200)
gdk/win32/gdkdnd-win32.c

index b968294ba92093b18032060aa83fbd5abd5275e6..164a7f5e6a422bec01686a69e89a23816d526abb 100644 (file)
@@ -2152,7 +2152,9 @@ _gdk_win32_dnd_do_dragdrop (void)
                         g_strdup_printf ("%#.8lx", hr))))));
 
   /* Delete dnd selection after successful move */
-  if (hr == DRAGDROP_S_DROP && dwEffect == DROPEFFECT_MOVE)
+  if (hr == DRAGDROP_S_DROP &&
+      dwEffect == DROPEFFECT_MOVE &&
+      (drag_ctx->actions & GDK_ACTION_MOVE))
     {
       GdkWin32Selection *win32_sel = _gdk_win32_selection_get ();
       GdkEvent tmp_event;