diff options
author | David Robillard <d@drobilla.net> | 2012-05-23 21:03:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-23 21:03:45 +0000 |
commit | 6818cddce15b8704f0f29f9fd5dd2c5befc5cc8f (patch) | |
tree | cdd4cc36e933ddcb4621ae637ca0e695c82f2370 /src | |
parent | b26030b705a5ebbd04231751cddef8e6a879e04e (diff) | |
download | ganv-6818cddce15b8704f0f29f9fd5dd2c5befc5cc8f.tar.gz ganv-6818cddce15b8704f0f29f9fd5dd2c5befc5cc8f.tar.bz2 ganv-6818cddce15b8704f0f29f9fd5dd2c5befc5cc8f.zip |
Fix wacky jumping modules problem.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4454 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/Canvas.cpp | 9 |
1 files 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; |