hotkey_popup: Do not use the deprecated geometry access

This commit is contained in:
Emmanuel Lepage Vallee 2016-09-11 02:07:00 -04:00
parent 98b561e806
commit 1ede1acc9d
1 changed files with 7 additions and 1 deletions

View File

@ -201,8 +201,14 @@ local function group_label(group, color)
return margin return margin
end end
local function get_screen(s)
return s and capi.screen[s]
end
local function create_wibox(s, available_groups) 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 local height = (widget.height < wa.height) and widget.height or
(wa.height - widget.border_width * 2) (wa.height - widget.border_width * 2)
local width = (widget.width < wa.width) and widget.width or local width = (widget.width < wa.width) and widget.width or