13
0

Tweak TB event passthrough

Play/Stop and Follow buttons no longer pass events up.
That way the strip will not be selected on mouse-up.
This commit is contained in:
Robin Gareus 2022-02-03 21:56:35 +01:00
parent d9ec733c47
commit e51427413c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 12 deletions

View File

@ -238,10 +238,6 @@ TriggerMaster::event_handler (GdkEvent* ev)
} else {
_triggerbox->stop_all_quantized ();
}
return true;
}
break;
case GDK_ENTER_NOTIFY:
@ -261,13 +257,12 @@ TriggerMaster::event_handler (GdkEvent* ev)
switch (ev->button.button) {
case 3:
context_menu ();
return true;
}
default:
break;
}
return false;
return true;
}
void

View File

@ -602,7 +602,6 @@ TriggerEntry::play_button_event (GdkEvent* ev)
} else {
trigger ()->box ().stop_all_quantized ();
}
return true;
}
break;
default:
@ -623,7 +622,6 @@ TriggerEntry::play_button_event (GdkEvent* ev)
} else {
trigger ()->bang ();
}
return true;
default:
break;
}
@ -657,7 +655,7 @@ TriggerEntry::play_button_event (GdkEvent* ev)
default:
break;
}
return false;
return true;
}
bool
@ -672,7 +670,6 @@ TriggerEntry::follow_button_event (GdkEvent* ev)
case 1:
case 3:
follow_context_menu ();
return true;
default:
break;
}
@ -690,7 +687,7 @@ TriggerEntry::follow_button_event (GdkEvent* ev)
default:
break;
}
return false;
return true;
}
bool
@ -706,7 +703,9 @@ TriggerEntry::event (GdkEvent* ev)
if(_grabbed) {
ungrab();
_grabbed = false;
} break;
}
return false;
break;
case GDK_BUTTON_PRESS:
if (!_drag_active) {
@ -741,6 +740,7 @@ TriggerEntry::event (GdkEvent* ev)
}
}
}
break;
default:
break;
}