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:
parent
ee1e63009b
commit
ddcbd2ae9d
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue