Merge pull request #474 from blueyed/ewmh-activate-only-focus-visible
ewmh.activate: only focus visible clients
This commit is contained in:
commit
bd39a70b62
|
@ -160,7 +160,9 @@ 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)
|
||||
client.focus = c
|
||||
if c:isvisible() then
|
||||
client.focus = c
|
||||
end
|
||||
if hints and hints.raise then
|
||||
if awesome.startup or c:isvisible() then
|
||||
c:raise()
|
||||
|
|
Loading…
Reference in New Issue