Clear selection when clicking region background (usual HiGgey stuff).
git-svn-id: svn://localhost/ardour2/trunk@2249 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1e27418b2c
commit
a90425c0c0
|
@ -260,7 +260,9 @@ MidiRegionView::canvas_event(GdkEvent* ev)
|
|||
group->ungrab(ev->button.time);
|
||||
switch (_state) {
|
||||
case Pressed: // Clicked
|
||||
if (ev->button.button == 3) {
|
||||
if (ev->button.button == 1) {
|
||||
clear_selection();
|
||||
} else if (ev->button.button == 3) {
|
||||
nframes_t event_frame = midi_view()->editor.pixel_to_frame(event_x);
|
||||
midi_view()->editor.snap_to(event_frame);
|
||||
event_x = midi_view()->editor.frame_to_pixel(event_frame);
|
||||
|
|
|
@ -168,6 +168,7 @@ class MidiRegionView : public RegionView
|
|||
bool note_canvas_event(GdkEvent* ev);
|
||||
|
||||
void clear_selection_except(ArdourCanvas::CanvasMidiEvent* ev);
|
||||
void clear_selection() { clear_selection_except(NULL); }
|
||||
|
||||
double _default_note_length;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user