13
0

triggerbox: handling double-click is necessary to cancel an unneeded grab()

This commit is contained in:
Ben Loftis 2022-01-28 15:51:51 -06:00
parent dab85fd309
commit 7d34397a35

View File

@ -606,6 +606,7 @@ TriggerEntry::play_button_event (GdkEvent* ev)
}
switch (ev->type) {
case GDK_2BUTTON_PRESS: //need to un-grab in a double-click action
case GDK_BUTTON_PRESS:
switch (ev->button.button) {
case 1:
@ -695,6 +696,7 @@ TriggerEntry::event (GdkEvent* ev)
}
switch (ev->type) {
case GDK_2BUTTON_PRESS: //need to un-grab in a double-click action
case GDK_BUTTON_RELEASE:
if(_grabbed) {
ungrab();