From 38435bb3207506a92c25a8c99945fcee14b3217f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Fri, 19 Mar 2010 03:19:14 +0100 Subject: [PATCH] Avoid wibox borders to be recovered by clients MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière Signed-off-by: Julien Danjou --- lib/awful/wibox.lua.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/awful/wibox.lua.in b/lib/awful/wibox.lua.in index 5ac0f7b7..a706affe 100644 --- a/lib/awful/wibox.lua.in +++ b/lib/awful/wibox.lua.in @@ -88,13 +88,13 @@ local function wibox_update_strut(wibox) if not wibox.visible then wibox:struts { left = 0, right = 0, bottom = 0, top = 0 } elseif wprop.position == "top" then - wibox:struts { left = 0, right = 0, bottom = 0, top = wibox.height + wibox.border_width } + wibox:struts { left = 0, right = 0, bottom = 0, top = wibox.height + 2 * wibox.border_width } elseif wprop.position == "bottom" then - wibox:struts { left = 0, right = 0, bottom = wibox.height + wibox.border_width, top = 0 } + wibox:struts { left = 0, right = 0, bottom = wibox.height + 2 * wibox.border_width, top = 0 } elseif wprop.position == "left" then - wibox:struts { left = wibox.width + wibox.border_width, right = 0, bottom = 0, top = 0 } + wibox:struts { left = wibox.width + 2 * wibox.border_width, right = 0, bottom = 0, top = 0 } elseif wprop.position == "right" then - wibox:struts { left = 0, right = wibox.width + wibox.border_width, bottom = 0, top = 0 } + wibox:struts { left = 0, right = wibox.width + 2 * wibox.border_width, bottom = 0, top = 0 } end break end