From 2a9b1d00e1e127380dd5c51463b30db1584b9fe6 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 19 Feb 2015 22:11:38 +0100 Subject: [PATCH] feat(lib: menubar): add paginated scrolling also fixes some local/global issues and adds saving current geometry to the instance table --- lib/menubar/init.lua.in | 69 +++++++++++++++++++++++++++++++++------- lib/menubar/utils.lua.in | 9 ++++++ 2 files changed, 67 insertions(+), 11 deletions(-) diff --git a/lib/menubar/init.lua.in b/lib/menubar/init.lua.in index 85d07bd5..a6bed5bd 100644 --- a/lib/menubar/init.lua.in +++ b/lib/menubar/init.lua.in @@ -16,9 +16,10 @@ local theme = require("beautiful") local wibox = require("wibox") -- menubar -local menubar = { mt = {} } +local menubar = { mt = {}, menu_entries = {} } menubar.menu_gen = require("menubar.menu_gen") menubar.utils = require("menubar.utils") +local compute_text_width = menubar.utils.compute_text_width --- List of menubar keybindings: --