From b693f1186c30c2c6ac323fd0cf9517fc392aedec Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 18 Mar 2014 16:01:04 +0100 Subject: [PATCH] awful.rules: Emit request::activate on the client There is a strong hint that you are doing something wrong: You call client.emit_signal(some_signal, c). Chances are high that this signal is supposed to be emitted on the client object 'c' instead of the underlying client class. This applies to awful.rules' usage of this signal. Signed-off-by: Uli Schlachter --- lib/awful/rules.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/rules.lua.in b/lib/awful/rules.lua.in index cfd07ee0..cb657cad 100644 --- a/lib/awful/rules.lua.in +++ b/lib/awful/rules.lua.in @@ -237,7 +237,7 @@ function rules.execute(c, props, callbacks) -- Do this at last so we do not erase things done by the focus -- signal. if props.focus and (type(props.focus) ~= "function" or props.focus(c)) then - client.emit_signal('request::activate', c) + c:emit_signal('request::activate') end end