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:
parent
69f0796762
commit
45f2b79a98
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue