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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-04-02 18:20:48 +02:00
parent a9f1aa3237
commit e1b4f17e64
1 changed files with 2 additions and 2 deletions

View File

@ -128,9 +128,9 @@ end
-- --
-- For example, to block Firefox from stealing the focus, use: -- 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 -- if c.class == "Firefox" then return false end
-- end) -- end, "ewmh")
-- --
-- @tparam function f The callback -- @tparam function f The callback
-- @tparam[opt] string context The `request::activate` context -- @tparam[opt] string context The `request::activate` context