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:
parent
a9f1aa3237
commit
e1b4f17e64
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue