From: Luke Bonham Date: Wed, 9 Apr 2014 19:04:04 +0000 (+0200) Subject: Merge pull request #38 from almonteb/fix/scroll X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/9d1fcc7435983fc51ee829d4ad3ebeb0babf9b4b?hp=2cfc5650ade76cb72637310f134fc5db9e4d81a0 Merge pull request #38 from almonteb/fix/scroll Adding scrolling support to the calendar --- diff --git a/widgets/calendar.lua b/widgets/calendar.lua index bd7f08c..f83b966 100644 --- a/widgets/calendar.lua +++ b/widgets/calendar.lua @@ -120,7 +120,11 @@ function calendar:attach(widget, args) widget:buttons(awful.util.table.join( awful.button({ }, 1, function () calendar:show(0, -1) end), awful.button({ }, 3, function () - calendar:show(0, 1) end) )) + calendar:show(0, 1) end), + awful.button({ }, 4, function () + calendar:show(0, -1) end), + awful.button({ }, 5, function () + calendar:show(0, 1) end))) end return setmetatable(calendar, { __call = function(_, ...) return create(...) end })