From ba39dcc8ff1567b34773060c2d5de7f50f8c8056 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Jan 2014 04:37:14 +0000 Subject: Fix documentation pane. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5256 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/Canvas.cpp b/src/Canvas.cpp index 9629cab..9d4558f 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -1502,6 +1502,10 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) } else if (control_dragging) { control_dragging = false; GANV_NODE(port)->impl->grabbed = FALSE; + if (event->button.x_root == control_start_x && + event->button.y_root == control_start_y) { + select_port_toggle(port, event->button.state); + } } else if (event->button.state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK)) { select_port_toggle(port, event->button.state); } else { -- cgit v1.2.1