summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-23 12:10:41 +0100
committerPixel <pixel@nobis-crew.org>2009-12-23 12:10:41 +0100
commit0e6559318d7fafe1cc677e3a62e41666228d253b (patch)
tree95a274e312e96b08f7dd04849cf288fffa91addd
parent5fad64d07b6f28605c6f7c40cd65a04167186ae7 (diff)
Fixing the 'lost focus then click' issues.
-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