From e1b4f17e649617d9c8ff80df793c4c78798f7714 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 2 Apr 2017 18:20:48 +0200 Subject: [PATCH] awful.ewmh.add_activate_filter: Fix doc example I didn't actually test this, but at least this now looks like valid Lua code to me, so this is definitely an improvement. Signed-off-by: Uli Schlachter --- lib/awful/ewmh.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index 1bc652b7..9a3ea246 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -128,9 +128,9 @@ end -- -- For example, to block Firefox from stealing the focus, use: -- --- awful.ewmh.add_activate_filter(function(c, "ewmh") +-- awful.ewmh.add_activate_filter(function(c) -- if c.class == "Firefox" then return false end --- end) +-- end, "ewmh") -- -- @tparam function f The callback -- @tparam[opt] string context The `request::activate` context