summaryrefslogtreecommitdiff
path: root/dalos.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dalos.lua')
-rw-r--r--dalos.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/dalos.lua b/dalos.lua
index d5dfe85..4e61c2e 100644
--- a/dalos.lua
+++ b/dalos.lua
@@ -187,7 +187,7 @@ dalosp.canvas = {
end,
focus_cb = function (self, focus)
- if focus == 0 then self:button_cb() end
+ if focus == 0 and not self.stateful.rghtbutton and not self.stateful.leftbutton then self:button_cb() end
end,
stypes = {
@@ -602,7 +602,7 @@ dalosp.object = {
end
end
local obj = {
- draw = dalosp.object.default_draw,
+ draw = tab.draw or dalosp.object.default_draw,
name = tab.name or "NoName",
color = tab.color or cd.GRAY,
ninputs = tab.ninputs or 0,