From 0e6559318d7fafe1cc677e3a62e41666228d253b Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 23 Dec 2009 12:10:41 +0100 Subject: Fixing the 'lost focus then click' issues. --- dalos.lua | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3