From 295abc5079233253312bec953c6559b6fb914bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Sat, 10 May 2014 00:09:29 +0200 Subject: [PATCH] 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). --- rc.lua.blackburn | 1 - rc.lua.copland | 1 - rc.lua.dremora | 1 - rc.lua.holo | 1 - rc.lua.powerarrow-darker | 1 - rc.lua.rainbow | 1 - rc.lua.steamburn | 1 - 7 files changed, 7 deletions(-) diff --git a/rc.lua.blackburn b/rc.lua.blackburn index f3d5fa7..699a54f 100644 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -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 diff --git a/rc.lua.copland b/rc.lua.copland index 5462c6e..dcf3db6 100644 --- a/rc.lua.copland +++ b/rc.lua.copland @@ -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 diff --git a/rc.lua.dremora b/rc.lua.dremora index 27c190f..ff7daed 100644 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -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 diff --git a/rc.lua.holo b/rc.lua.holo index 8d9455e..8594453 100644 --- a/rc.lua.holo +++ b/rc.lua.holo @@ -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 diff --git a/rc.lua.powerarrow-darker b/rc.lua.powerarrow-darker index 95e09b7..c143005 100644 --- a/rc.lua.powerarrow-darker +++ b/rc.lua.powerarrow-darker @@ -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 diff --git a/rc.lua.rainbow b/rc.lua.rainbow index cd69ec0..9f58f3a 100644 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -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 diff --git a/rc.lua.steamburn b/rc.lua.steamburn index 3a01dd4..f116819 100644 --- a/rc.lua.steamburn +++ b/rc.lua.steamburn @@ -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