From 901bb3d88ef7e822354995f9ab2674df5bb5b042 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 3 Sep 2020 04:20:05 +0200 Subject: [PATCH] fix(awful: hotkeys_popup: widget: create_group_columns): correct max label height detection --- lib/awful/hotkeys_popup/widget.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/awful/hotkeys_popup/widget.lua b/lib/awful/hotkeys_popup/widget.lua index 0157cd33..81cc2469 100644 --- a/lib/awful/hotkeys_popup/widget.lua +++ b/lib/awful/hotkeys_popup/widget.lua @@ -438,7 +438,10 @@ function widget.new(args) end function widget_instance:_create_group_columns(column_layouts, group, keys, s, wibox_height) - local line_height = beautiful.get_font_height(self.font) + local line_height = math.max( + beautiful.get_font_height(self.font), + beautiful.get_font_height(self.description_font) + ) local group_label_height = line_height + self.group_margin -- -1 for possible pagination: local max_height_px = wibox_height - group_label_height