ewmh.activate: focus and especially raise clients during startup

This fixes the focused client (possibly) not being raised after
restarting awesome.
This commit is contained in:
Daniel Hahler 2014-11-06 21:26:32 +01:00
parent daeb9aee19
commit d2168a9889
1 changed files with 2 additions and 2 deletions

View File

@ -135,10 +135,10 @@ end
-- Activate a window
function ewmh.activate(c)
if c:isvisible() then
if awesome.startup or c:isvisible() then
client.focus = c
c:raise()
elseif not awesome.startup then
else
c.urgent = true
end
end