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:
Paul Davis
2025-04-07 08:18:59 -06:00
parent 0b15408297
commit 1a48787361

View File

@@ -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 */