summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_body.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_matrix_body.cc')
-rw-r--r--gtk2_ardour/port_matrix_body.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/gtk2_ardour/port_matrix_body.cc b/gtk2_ardour/port_matrix_body.cc
index 593c365d3c..a29f2483e3 100644
--- a/gtk2_ardour/port_matrix_body.cc
+++ b/gtk2_ardour/port_matrix_body.cc
@@ -347,6 +347,14 @@ PortMatrixBody::on_button_release_event (GdkEventButton* ev)
_row_labels->clear_channel_highlights ();
_column_labels->clear_channel_highlights ();
+ } else if (Gdk::Region (_grid->parent_rectangle()).point_in (ev->x, ev->y)) {
+
+ _grid->button_release (
+ _grid->parent_to_component_x (ev->x),
+ _grid->parent_to_component_y (ev->y),
+ ev->button, ev->time
+ );
+
}
return true;
@@ -387,11 +395,14 @@ bool
PortMatrixBody::on_motion_notify_event (GdkEventMotion* ev)
{
if (Gdk::Region (_grid->parent_rectangle()).point_in (ev->x, ev->y)) {
- _grid->mouseover_event (
+
+ _grid->motion (
_grid->parent_to_component_x (ev->x),
_grid->parent_to_component_y (ev->y)
);
+
_mouse_over_grid = true;
+
} else {
if (_mouse_over_grid) {
set_mouseover (PortMatrixNode ());
@@ -417,8 +428,6 @@ PortMatrixBody::set_mouseover (PortMatrixNode const & n)
_column_labels->mouseover_changed (old);
}
-
-
void
PortMatrixBody::highlight_associated_channels (int dim, ARDOUR::BundleChannel h)
{