From 6818cddce15b8704f0f29f9fd5dd2c5befc5cc8f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 23 May 2012 21:03:45 +0000 Subject: Fix wacky jumping modules problem. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4454 a436a847-0d15-0410-975c-d299462d15a1 --- src/Canvas.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Canvas.cpp b/src/Canvas.cpp index fb42192..9e125b0 100644 --- a/src/Canvas.cpp +++ b/src/Canvas.cpp @@ -1100,20 +1100,19 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) GDK_POINTER_MOTION_MASK|GDK_BUTTON_RELEASE_MASK, NULL, event->button.time); } - return true; } else if (!port->impl->is_input) { port_dragging = port_pressed = true; ganv_item_grab(GANV_ITEM(port), GDK_BUTTON_RELEASE_MASK|GDK_POINTER_MOTION_MASK| GDK_ENTER_NOTIFY_MASK|GDK_LEAVE_NOTIFY_MASK, NULL, event->button.time); - return true; } else { port_pressed = true; ganv_item_grab(GANV_ITEM(port), GDK_BUTTON_RELEASE_MASK, NULL, event->button.time); } + return true; } break; @@ -1175,18 +1174,14 @@ GanvCanvasImpl::port_event(GdkEvent* event, GanvPort* port) } } port_dragging = false; - return true; } else if (control_dragging) { control_dragging = false; - return true; } else if (event->button.state & (GDK_SHIFT_MASK|GDK_CONTROL_MASK)) { select_port_toggle(port, event->button.state); - return true; } else { selection_joined_with(port); - return true; } - break; + return true; case GDK_ENTER_NOTIFY: gboolean selected; -- cgit v1.2.1