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:
parent
daeb9aee19
commit
d2168a9889
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue