awesomerc: delay client focus until after it's on the right tag.

- This avoids seeing the client for a split second on the current tag.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Maarten Maathuis 2008-11-21 15:40:05 +01:00 committed by Julien Danjou
parent 69f0796762
commit 45f2b79a98
1 changed files with 3 additions and 1 deletions

View File

@ -342,7 +342,6 @@ awful.hooks.manage.register(function (c)
-- if they're not focusable, so set border anyway. -- if they're not focusable, so set border anyway.
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_normal c.border_color = beautiful.border_normal
client.focus = c
-- Check if the application should be floating. -- Check if the application should be floating.
local cls = c.class local cls = c.class
@ -365,6 +364,9 @@ awful.hooks.manage.register(function (c)
awful.client.movetotag(tags[target.screen][target.tag], c) awful.client.movetotag(tags[target.screen][target.tag], c)
end end
-- Do this after tag mapping, so you don't see it on the wrong tag for a split second.
client.focus = c
-- Set the windows at the slave, -- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master. -- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c) -- awful.client.setslave(c)