mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
ewmh: Take focusable into account in request::activate
This commit is contained in:
parent
c678a0d426
commit
f681ace587
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue