mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
Spawn clients under mouse's screen
This commit is contained in:
parent
15af6aa836
commit
f3f0e7a47c
|
@ -674,6 +674,9 @@ awful.rules.rules = {
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
local sloppyfocus_last = {c=nil}
|
local sloppyfocus_last = {c=nil}
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
|
local tag = awful.tag.gettags(mouse.screen)[awful.tag.getidx(c:tags()[1])]
|
||||||
|
awful.client.movetoscreen(c, mouse.screen)
|
||||||
|
awful.client.movetotag(tag, c)
|
||||||
-- Enable sloppy focus
|
-- Enable sloppy focus
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
|
|
Loading…
Reference in a new issue