ewmh: Take focusable into account in request::activate

This commit is contained in:
Emmanuel Lepage Vallee 2016-04-15 01:43:58 -04:00
parent c678a0d426
commit f681ace587

View file

@ -162,6 +162,10 @@ end
-- @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) -- luacheck: no unused args
hints = hints or {}
if c.focusable == false and not hints.force then return end
if c:isvisible() then
client.focus = c
end