diff --git a/lib/awful/hotkeys_popup/widget.lua b/lib/awful/hotkeys_popup/widget.lua index b0ab3b76f..8c25148ed 100644 --- a/lib/awful/hotkeys_popup/widget.lua +++ b/lib/awful/hotkeys_popup/widget.lua @@ -17,6 +17,7 @@ local wibox = require("wibox") local beautiful = require("beautiful") local dpi = beautiful.xresources.apply_dpi +local matcher = require("gears.matcher")() -- Stripped copy of this module https://github.com/copycat-killer/lain/blob/master/util/markup.lua: local markup = {} @@ -522,7 +523,7 @@ function widget.new(args) if group_name==group and ( data.rule or data.rule_any or data.except or data.except_any ) then - if not c or not awful.rules.matches(c, { + if not c or not matcher:matches_rule(c, { rule=data.rule, rule_any=data.rule_any, except=data.except,