Another DnD fix. fix move onto (but not over) busses.
[ardour.git] / gtk2_ardour / patch_change.cc
index 925a0f3b23b533b5b32fa4a36e76697bdf26e733..601011d01773da41c0dacecb5506a41f750b2eea 100644 (file)
@@ -60,7 +60,8 @@ PatchChange::PatchChange(MidiRegionView&                   region,
                height,
                ARDOUR_UI::config()->color ("midi patch change outline"),
                ARDOUR_UI::config()->color_mod ("midi patch change fill", "midi patch change fill"),
-               ArdourCanvas::Duple (x, y));
+               ArdourCanvas::Duple (x, y),
+               true);
        
        CANVAS_DEBUG_NAME (_flag, text);
 
@@ -157,15 +158,14 @@ PatchChange::event_handler (GdkEvent* ev)
 {
        /* XXX: icky dcast */
        Editor* e = dynamic_cast<Editor*> (&_region.get_time_axis_view().editor());
-
+       
        if (!e->internal_editing()) {
-               // not in internal edit mode, so no patch change editing
                return false;
        }
 
        switch (ev->type) {
        case GDK_BUTTON_PRESS:
-               if (e->current_mouse_mode() == Editing::MouseObject) {
+               if (e->current_mouse_mode() == Editing::MouseContent) {
 
                        if (Gtkmm2ext::Keyboard::is_delete_event (&ev->button)) {