ewmh: Take focusable into account in request::activate
This commit is contained in:
parent
c678a0d426
commit
f681ace587
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue