summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dalos.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/dalos.lua b/dalos.lua
index bf54c04..5cbe5d9 100644
--- a/dalos.lua
+++ b/dalos.lua
@@ -351,6 +351,7 @@ dalosp.canvas = {
end
else
if not self.stateful.linking and self.stateful.leftclk and not self.stateful.dragging then
+ self.stateful.leftbutton = nil
self.stateful.leftclk.obj:activate()
elseif self.stateful.linking then
local dest = self:findobj(x,y)
@@ -392,6 +393,7 @@ dalosp.canvas = {
end
else
if not self.stateful.moving and self.stateful.rghtclk and not self.stateful.dragging then
+ self.stateful.rghtbutton = nil
self.stateful.rghtclk.obj:configure()
self:draw()
elseif self.menu.x then