awesomerc: move where the mouse is only soon

That avoids overriding apptag.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-29 17:24:19 +01:00
parent ee1e63009b
commit ddcbd2ae9d
1 changed files with 7 additions and 7 deletions

View File

@ -328,6 +328,13 @@ end)
-- Hook function to execute when a new client appears. -- Hook function to execute when a new client appears.
awful.hooks.manage.register(function (c, startup) awful.hooks.manage.register(function (c, startup)
-- If we are not managing this application at startup,
-- move it to the screen where the mouse is.
-- We only do it for filtered windows (i.e. no dock, etc).
if not startup and awful.client.focus.filter(c) then
c.screen = mouse.screen
end
if use_titlebar then if use_titlebar then
-- Add a titlebar -- Add a titlebar
awful.titlebar.add(c, { modkey = modkey }) awful.titlebar.add(c, { modkey = modkey })
@ -364,13 +371,6 @@ awful.hooks.manage.register(function (c, startup)
awful.client.movetotag(tags[target.screen][target.tag], c) awful.client.movetotag(tags[target.screen][target.tag], c)
end end
-- If we are not managing this applicatin at startup,
-- move it to the screen where the mouse is.
-- We only do it for filtered windows (i.e. no dock, etc).
if not startup and awful.client.focus.filter(c) then
c.screen = mouse.screen
end
-- Do this after tag mapping, so you don't see it on the wrong tag for a split second. -- Do this after tag mapping, so you don't see it on the wrong tag for a split second.
client.focus = c client.focus = c