From 6d8347df906490804002e271486b157b4dc17f91 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 10 Sep 2015 20:45:29 +0200 Subject: [PATCH] ewmh.activate: make hints optional Ref: https://github.com/awesomeWM/awesome/pull/441. Closes https://github.com/awesomeWM/awesome/pull/444. --- lib/awful/ewmh.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/ewmh.lua b/lib/awful/ewmh.lua index ac74ca9e3..38303f0de 100644 --- a/lib/awful/ewmh.lua +++ b/lib/awful/ewmh.lua @@ -157,11 +157,11 @@ end -- -- @client c A client to use -- @tparam string context The context where this signal was used. --- @tparam table hints A table with additional hints: --- @tparam boolean hints.raise should the client be raised? (default false) +-- @tparam[opt] table hints A table with additional hints: +-- @tparam[opt=false] boolean hints.raise should the client be raised? function ewmh.activate(c, context, hints) client.focus = c - if hints.raise then + if hints and hints.raise then if awesome.startup or c:isvisible() then c:raise() else