summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_pin_dialog.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-04-07 00:48:57 +0200
committerRobin Gareus <robin@gareus.org>2016-04-07 00:48:57 +0200
commit2486ee0137bba587d598ea54b4c6350423a30a9e (patch)
tree797f748cfb92050e21e5db282ad79eb0896bfcab /gtk2_ardour/plugin_pin_dialog.cc
parent5634414d789713653cc73fa14d72271085994a07 (diff)
more click-connect compatible wire DnD experiments
Diffstat (limited to 'gtk2_ardour/plugin_pin_dialog.cc')
-rw-r--r--gtk2_ardour/plugin_pin_dialog.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/plugin_pin_dialog.cc b/gtk2_ardour/plugin_pin_dialog.cc
index 8551fb6ced..df479f4d1b 100644
--- a/gtk2_ardour/plugin_pin_dialog.cc
+++ b/gtk2_ardour/plugin_pin_dialog.cc
@@ -887,10 +887,14 @@ PluginPinDialog::darea_button_press_event (GdkEventButton* ev)
else if (_selection->ct == Source && _hover->ct == Output) { _actor = _hover; }
if (!_actor) {
_selection = _hover;
+ _dragging = true;
+ _drag_x = ev->x;
+ _drag_y = ev->y;
}
darea.queue_draw ();
- } else if (_selection && _selection == _hover) {
- assert (!_dragging);
+ } else if (_hover) {
+ _selection = _hover;
+ _actor.reset ();
_dragging = true;
_drag_x = ev->x;
_drag_y = ev->y;