Fix cue selection

TriggerEntry has 3 child items:
 * play-button, follow-button, name-button.

On mouse-down the TriggerEntry is grab()bed in preparation
to start a drag. From then on all events are directly sent to
TriggerEntry, which can only pass it up to parent items.
Mouse-release hence reaches the TriggerStrip and selects it.
This commit is contained in:
Robin Gareus 2022-02-03 23:29:01 +01:00
parent e51427413c
commit 05f4ffa598
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 7 additions and 1 deletions

View File

@ -703,8 +703,14 @@ TriggerEntry::event (GdkEvent* ev)
if(_grabbed) {
ungrab();
_grabbed = false;
if (ev->type == GDK_BUTTON_RELEASE) {
/* Pass event down to child item, as if this item was not grabbed.
* This is needed to select item on release.
*/
name_button->Event (ev);
return true;
}
}
return false;
break;
case GDK_BUTTON_PRESS: