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