From 39c90b830315dd2f3f9468d3fa5b79e2f8c38941 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 19 Jan 2020 02:36:33 -0500 Subject: [PATCH] hotkeys: Port away from awful.rules --- lib/awful/hotkeys_popup/widget.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/hotkeys_popup/widget.lua b/lib/awful/hotkeys_popup/widget.lua index b0ab3b76..8c25148e 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,