Author: jackson
Date: 2006-11-02 19:26:05 -0500 (Thu, 02 Nov 2006)
New Revision: 67306
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
Log:
* X11Dnd.cs: We always allow copy, since XDND implies Copy.
* Also
send the status after firing the DndOver event.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-02 23:26:15 UTC (rev 67305)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-03 00:26:05 UTC (rev 67306)
@@ -1,3 +1,8 @@
+2006-11-02 Jackson Harper <[EMAIL PROTECTED]>
+
+ * X11Dnd.cs: We always allow copy, since XDND implies Copy. Also
+ send the status after firing the DndOver event.
+
2006-11-02 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* TrackBar.cs: Now orientation only switches height / width if
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
2006-11-02 23:26:15 UTC (rev 67305)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
2006-11-03 00:26:05 UTC (rev 67306)
@@ -639,7 +639,8 @@
pos_x = (int) xevent.ClientMessageEvent.ptr3 >> 16;
pos_y = (int) xevent.ClientMessageEvent.ptr3 & 0xFFFF;
- allowed = EffectFromAction
(xevent.ClientMessageEvent.ptr5);
+ // Copy is implicitly allowed
+ allowed = EffectFromAction
(xevent.ClientMessageEvent.ptr5) | DragDropEffects.Copy;
IntPtr parent, child, new_child, last_drop_child;
parent = XplatUIX11.XRootWindow (display, 0);
@@ -697,8 +698,8 @@
} else {
drag_event.x = pos_x;
drag_event.y = pos_y;
+ control.DndOver (drag_event);
SendStatus (source, drag_event.Effect);
- control.DndOver (drag_event);
}
return true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches