awful.client: handle focus history through `manage` on startup
After fcccc77
the focus history was not handled correctly any more during
restart.
Closes https://github.com/awesomeWM/awesome/pull/526.
This commit is contained in:
parent
2acc125354
commit
37aad883a6
|
@ -1078,6 +1078,14 @@ capi.client.add_signal("marked")
|
|||
capi.client.add_signal("unmarked")
|
||||
|
||||
capi.client.connect_signal("focus", client.focus.history.add)
|
||||
-- Add clients during startup to focus history.
|
||||
-- This used to happen through ewmh.activate, but that only handles visible
|
||||
-- clients now.
|
||||
capi.client.connect_signal("manage", function (c)
|
||||
if awesome.startup then
|
||||
client.focus.history.add(c)
|
||||
end
|
||||
end)
|
||||
capi.client.connect_signal("unmanage", client.focus.history.delete)
|
||||
|
||||
capi.client.connect_signal("property::urgent", client.urgent.add)
|
||||
|
|
Loading…
Reference in New Issue