projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d226b63
)
Allow to bind initial Lua action via left-click
author
Robin Gareus
<robin@gareus.org>
Thu, 12 Dec 2019 19:50:34 +0000
(20:50 +0100)
committer
Robin Gareus
<robin@gareus.org>
Thu, 12 Dec 2019 19:53:18 +0000
(20:53 +0100)
gtk2_ardour/ardour_ui_dependents.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/ardour_ui_dependents.cc
b/gtk2_ardour/ardour_ui_dependents.cc
index c1e58f43d62cb9777cc04d2e46a084ddd6af73b6..213530e9f5b2172e70f7919a2094deffbf821d3a 100644
(file)
--- a/
gtk2_ardour/ardour_ui_dependents.cc
+++ b/
gtk2_ardour/ardour_ui_dependents.cc
@@
-405,10
+405,11
@@
ARDOUR_UI::setup_windows ()
bool
ARDOUR_UI::bind_lua_action_script (GdkEventButton*ev, int i)
{
- if (ev->button != 3) {
+ LuaInstance *li = LuaInstance::instance();
+ std::string name;
+ if (ev->button != 3 && !(ev->button == 1 && !li->lua_action_name (i, name))) {
return false;
}
- LuaInstance *li = LuaInstance::instance();
if (Gtkmm2ext::Keyboard::modifier_state_equals (ev->state, Gtkmm2ext::Keyboard::TertiaryModifier)) {
li->remove_lua_action (i);
} else {