1
0
Fork 0
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:
Evan Black 2015-11-24 02:28:27 -06:00
parent 15af6aa836
commit f3f0e7a47c

View file

@ -674,6 +674,9 @@ awful.rules.rules = {
-- signal function to execute when a new client appears.
local sloppyfocus_last = {c=nil}
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
client.connect_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier