projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5634414
)
more click-connect compatible wire DnD experiments
author
Robin Gareus
<robin@gareus.org>
Wed, 6 Apr 2016 22:48:57 +0000
(
00:48
+0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 6 Apr 2016 22:48:57 +0000
(
00:48
+0200)
gtk2_ardour/plugin_pin_dialog.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/plugin_pin_dialog.cc
b/gtk2_ardour/plugin_pin_dialog.cc
index 8551fb6cedcc329faa810fd0b18cfb7023cf3c6a..df479f4d1b24eefe1e1ec4e5846d5e507de52207 100644
(file)
--- 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;