awesomerc: move history in its own arrange() register
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6e54661e7f
commit
26545ddecb
|
@ -360,9 +360,6 @@ function hook_arrange(screen)
|
||||||
mylayoutbox[screen].text =
|
mylayoutbox[screen].text =
|
||||||
"<bg image=\"@AWESOME_ICON_PATH@/layouts/" .. awful.layout.get(screen) .. "w.png\" resize=\"true\"/>"
|
"<bg image=\"@AWESOME_ICON_PATH@/layouts/" .. awful.layout.get(screen) .. "w.png\" resize=\"true\"/>"
|
||||||
|
|
||||||
-- Update tag history
|
|
||||||
awful.tag.history.update(screen)
|
|
||||||
|
|
||||||
-- If no window has focus, give focus to the latest in history
|
-- If no window has focus, give focus to the latest in history
|
||||||
if not client.focus_get() then
|
if not client.focus_get() then
|
||||||
local c = awful.client.focus.history.get(screen, 0)
|
local c = awful.client.focus.history.get(screen, 0)
|
||||||
|
@ -411,6 +408,7 @@ awful.hooks.manage(hook_manage)
|
||||||
awful.hooks.unmanage(awful.client.focus.history.delete)
|
awful.hooks.unmanage(awful.client.focus.history.delete)
|
||||||
awful.hooks.mouseover(hook_mouseover)
|
awful.hooks.mouseover(hook_mouseover)
|
||||||
awful.hooks.arrange(hook_arrange)
|
awful.hooks.arrange(hook_arrange)
|
||||||
|
awful.hooks.arrange(awful.tag.history.update)
|
||||||
awful.hooks.timer(1, hook_timer)
|
awful.hooks.timer(1, hook_timer)
|
||||||
awful.hooks.titleupdate(hook_titleupdate)
|
awful.hooks.titleupdate(hook_titleupdate)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
Loading…
Reference in New Issue