summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dalos.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/dalos.lua b/dalos.lua
index c8d04df..c966436 100644
--- a/dalos.lua
+++ b/dalos.lua
@@ -228,7 +228,7 @@ dalosp.canvas = {
end,
focus_cb = function (self, focus)
- if focus == 0 and not self.stateful.rghtbutton and not self.stateful.leftbutton then self:button_cb() end
+ if focus == 0 and (self.stateful.rghtbutton or self.stateful.leftbutton) then self:button_cb() end
end,
stypes = {