From fd835fdbeb0fd34b8684cc9573a26abef46e081a Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Wed, 19 Feb 2014 22:16:59 -0500 Subject: [PATCH] Fix issue #14 --- bar.lua | 2 +- context.lua | 2 +- embed.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bar.lua b/bar.lua index 300eded..cfe3bc7 100644 --- a/bar.lua +++ b/bar.lua @@ -105,7 +105,7 @@ local function setup_buttons(data,item,args) end end - item:connect_signal("button::press",function(_m,_i,button_id,mods) + item:connect_signal("button::release",function(_m,_i,button_id,mods) if #mods == 0 and buttons[button_id] then buttons[button_id](_m,_i,mods) end diff --git a/context.lua b/context.lua index 0f3b8f1..39d4c61 100644 --- a/context.lua +++ b/context.lua @@ -211,7 +211,7 @@ local function setup_buttons(data,item,args) end end - item:connect_signal("button::press",function(_m,_i,button_id,mods) + item:connect_signal("button::release",function(_m,_i,button_id,mods) if #mods == 0 and buttons[button_id] then buttons[button_id](_m,_i,mods) end diff --git a/embed.lua b/embed.lua index 8143e54..8778534 100644 --- a/embed.lua +++ b/embed.lua @@ -65,7 +65,7 @@ local function setup_item(data,item,args) end end - item:connect_signal("button::press",function(_m,_i,button_id,mods) + item:connect_signal("button::release",function(_m,_i,button_id,mods) if #mods == 0 and buttons[button_id] then buttons[button_id](_m,_i,mods) end