Some precisions : it seems it finally interacts but not the whole widget... Since i have two of these widgets side by side, it appears that sensitive area overlaps on the other : it's like the area of the widget is on its bottom right and includes a part of the other widget...
A problem of position of the lgi.cairo surface with the widget itself ? 2014-04-16 16:54 GMT+02:00 david cobac <[email protected]>: > 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 > -- Cordialement David Cobac
