1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-10-22 20:41:22 +00:00

remove useless invocations of awful.client.moveresize()

in most themes this is not required - changing the border_size will
reposition the window to accompany the changed total size.

Also the useless resizes do hurt terminals if some of the "window size
changed" events got lost or garbeled. Also some reported lags (awesome
bug FS#1181 - Clients resize lag).
This commit is contained in:
Andre Klärner 2014-05-10 00:09:29 +02:00
parent b995e8371f
commit 295abc5079
7 changed files with 0 additions and 7 deletions

View file

@ -636,7 +636,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -729,7 +729,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -665,7 +665,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -771,7 +771,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -688,7 +688,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -634,7 +634,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end

View file

@ -643,7 +643,6 @@ for s = 1, screen.count() do screen[s]:connect_signal("arrange", function ()
-- No borders with only one visible client
elseif #clients == 1 or layout == "max" then
clients[1].border_width = 0
awful.client.moveresize(0, 0, 2, 2, clients[1])
else
c.border_width = beautiful.border_width
end