From 1ede1acc9d210a7c3df84ad5c2576f25a7ad0b38 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 11 Sep 2016 02:07:00 -0400 Subject: [PATCH] hotkey_popup: Do not use the deprecated geometry access --- lib/awful/hotkeys_popup/widget.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/awful/hotkeys_popup/widget.lua b/lib/awful/hotkeys_popup/widget.lua index 3a9f0be4c..e531a6dd2 100644 --- a/lib/awful/hotkeys_popup/widget.lua +++ b/lib/awful/hotkeys_popup/widget.lua @@ -201,8 +201,14 @@ local function group_label(group, color) return margin end +local function get_screen(s) + return s and capi.screen[s] +end + local function create_wibox(s, available_groups) - local wa = capi.screen[s].workarea + s = get_screen(s) + + local wa = s.workarea local height = (widget.height < wa.height) and widget.height or (wa.height - widget.border_width * 2) local width = (widget.width < wa.width) and widget.width or