- } else {
-
- if (ev->type == GDK_BUTTON_PRESS && note >= 0 && note < 128) {
-
- add_modal_grab();
- _dragging = true;
-
- if (!_active_notes[note]) {
- _active_notes[note] = true;
- _clicked_note = note;
- send_note_on(note);
-
- invalidate_note_range(note, note);
- } else {
- reset_clicked_note(note);
- }
+
+ if (!_active_notes[note]) {
+ _active_notes[note] = true;
+ _clicked_note = note;
+ send_note_on(note);
+
+ invalidate_note_range(note, note);
+ } else {
+ reset_clicked_note(note);