* X11Dnd.cs: When sending status in a dnd operation, compare current
effect with the 'allowed' field instead of 'drag_data.Allowed', since
the later is only created when a Winforms application is both the
source and the target, but not when we are the target only.
Fixes part of #324251.
svn path=/trunk/mcs/; revision=88705
+2007-11-01 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * X11Dnd.cs: When sending status in a dnd operation, compare current
+ effect with the 'allowed' field instead of 'drag_data.Allowed', since
+ the later is only created when a Winforms application is both the
+ source and the target, but not when we are the target only.
+ Fixes part of #324251.
+
2007-11-01 Geoff Norton <gnorton@novell.com>
* XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
xevent.ClientMessageEvent.message_type = XdndStatus;
xevent.ClientMessageEvent.format = 32;
xevent.ClientMessageEvent.ptr1 = toplevel;
- if (effect != DragDropEffects.None && (effect & drag_data.AllowedEffects) != 0)
+ if (effect != DragDropEffects.None && (effect & allowed) != 0)
xevent.ClientMessageEvent.ptr2 = (IntPtr) 1;
xevent.ClientMessageEvent.ptr5 = ActionFromEffect (effect);