mirror of https://github.com/lcpz/lain.git
Adding scrolling support to the calendar
This commit is contained in:
parent
2cfc5650ad
commit
a8bbff7a6d
|
@ -120,7 +120,11 @@ function calendar:attach(widget, args)
|
||||||
widget:buttons(awful.util.table.join( awful.button({ }, 1, function ()
|
widget:buttons(awful.util.table.join( awful.button({ }, 1, function ()
|
||||||
calendar:show(0, -1) end),
|
calendar:show(0, -1) end),
|
||||||
awful.button({ }, 3, function ()
|
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
|
end
|
||||||
|
|
||||||
return setmetatable(calendar, { __call = function(_, ...) return create(...) end })
|
return setmetatable(calendar, { __call = function(_, ...) return create(...) end })
|
||||||
|
|
Loading…
Reference in New Issue