when setting up a fake event for using in Editor::drop_regions(), use BUTTON_PRESS not MOTION_NOTIFY
It is not legal to start drags from anything except BUTTON_PRESS
This commit is contained in:
@@ -1384,7 +1384,7 @@ Editor::drop_regions (const Glib::RefPtr<Gdk::DragContext>& /*context*/,
|
||||
double px;
|
||||
double py;
|
||||
|
||||
event.type = GDK_MOTION_NOTIFY;
|
||||
event.type = GDK_BUTTON_PRESS;
|
||||
event.button.x = x;
|
||||
event.button.y = y;
|
||||
/* assume we're dragging with button 1 */
|
||||
|
||||
Reference in New Issue
Block a user