From 252144e31bf0d572a59edbc546cb1d9f9926d6f2 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 16 Mar 2015 02:11:16 +0300 Subject: [PATCH] proper setslave + do not snap windows to each other --- rc.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/rc.lua b/rc.lua index 7fdef12..40aaa57 100644 --- a/rc.lua +++ b/rc.lua @@ -75,6 +75,9 @@ theme.font = 'Terminus 9' theme.taglist_squares_sel = nil theme.taglist_squares_unsel = nil +-- amount of pixels to snap windows from +snap = 0 + -- set wallpaper local wallpaper = '/home/von/Pictures/wallpaper.png' if exists(wallpaper) then @@ -524,8 +527,8 @@ for i = 1, 9 do end clientbuttons = awful.util.table.join( - awful.button({ }, 1, function (c) client.focus = c; c:raise() end), - awful.button({ modkey }, 1, awful.mouse.client.move), + awful.button({ }, 1, function (c) client.focus = c; c:raise() end), + awful.button({ modkey }, 1, function (c) client.focus = c; awful.mouse.client.move(c, snap) end), awful.button({ modkey }, 3, awful.mouse.client.resize) ) @@ -542,8 +545,7 @@ awful.rules.rules = { border_color = beautiful.border_normal, focus = awful.client.focus.filter, keys = clientkeys, - buttons = clientbuttons, - callback = awful.client.setslave + buttons = clientbuttons } }, -- Floating only rules: @@ -678,7 +680,7 @@ client.connect_signal( if not startup then -- Set the windows at the slave, -- i.e. put it at the end of others instead of setting it master. - -- awful.client.setslave(c) + awful.client.setslave(c) -- Put windows in a smart way, only if they do not set an initial position. if not c.size_hints.user_position and not c.size_hints.program_position then