Hi !
I've several widgets defined the same way :
mpdtw = wibox.widget.base.make_widget()
mpdtw.fit = function ( mpdtw , width , height )
local size = math.min ( width , height )
return size, size
end
mpdtw.draw = function ( mpdtw , wibox , cr , width , height )
...
...
end
None of them react when i define events like this for example :
mpdtw:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.util.spawn( "mpc toggle" ) end),
awful.button({ }, 4, function () awful.util.spawn( "mpc seek +2%" ) end),
awful.button({ }, 5, function () awful.util.spawn( "mpc seek -2%" ) end)
))
thanks for any help !
awesome v3.5.5 (Kansas City Shuffle)
• Build: Apr 12 2014 19:40:24 for x86_64 by gcc version 4.8.2 (root@antec)
• Compiled against Lua 5.1.5 (running with Lua 5.1)
• D-Bus support: ✘
--
Cordialement
David Cobac