Author: jackson
Date: 2007-05-28 10:48:44 -0400 (Mon, 28 May 2007)
New Revision: 78062
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: Keep tracking until the xdnd finished event is
recieved. TODO: I should probably stick a timer on the dropped
event, and finish the drag if the XDND Finished event never
shows
(because some apps don't seem to send it).
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-28 14:34:26 UTC (rev 78061)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-28 14:48:44 UTC (rev 78062)
@@ -1,3 +1,10 @@
+2007-05-28 Jackson Harper <[EMAIL PROTECTED]>
+
+ * X11Dnd.cs: Keep tracking until the xdnd finished event is
+ recieved. TODO: I should probably stick a timer on the dropped
+ event, and finish the drag if the XDND Finished event never shows
+ (because some apps don't seem to send it).
+
2007-05-28 Everaldo Canuto <[EMAIL PROTECTED]>
* ToolBar.cs: Fix toolbar default width for button with image. Fixes
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
2007-05-28 14:34:26 UTC (rev 78061)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11Dnd.cs
2007-05-28 14:48:44 UTC (rev 78062)
@@ -567,6 +567,8 @@
return Accepting_HandleLeaveEvent (ref xevent);
if (xevent.ClientMessageEvent.message_type ==
XdndStatus)
return HandleStatusEvent (ref xevent);
+ if (xevent.ClientMessageEvent.message_type ==
XdndFinished)
+ return HandleFinishedEvent (ref xevent);
return false;
}
@@ -846,6 +848,12 @@
return true;
}
+ private bool HandleFinishedEvent (ref XEvent xevent)
+ {
+ tracking = false;
+ return true;
+ }
+
private DragDropEffects EffectFromAction (IntPtr action)
{
DragDropEffects allowed = DragDropEffects.None;
@@ -1043,8 +1051,6 @@
xevent.ClientMessageEvent.ptr1 = toplevel;
XplatUIX11.XSendEvent (display, source, false,
IntPtr.Zero, ref xevent);
-
- tracking = false;
}
// There is a somewhat decent amount of overhead
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches