ewmh.activate: raise a client always

When a client is not visible, this would adjust its stacking order
still.

This also addresses https://github.com/awesomeWM/awesome/issues/472,
because it raises unminimized clients after they got focused.
This commit is contained in:
Daniel Hahler 2015-09-09 22:26:39 +02:00
parent 0414a579c2
commit 81e59cdfc8
1 changed files with 2 additions and 3 deletions

View File

@ -162,9 +162,8 @@ end
function ewmh.activate(c, context, hints) function ewmh.activate(c, context, hints)
client.focus = c client.focus = c
if hints and hints.raise then if hints and hints.raise then
if awesome.startup or c:isvisible() then c:raise()
c:raise() if not awesome.startup and not c:isvisible() then
else
c.urgent = true c.urgent = true
end end
end end