From 2e8071efae3f74b1afa8c23f8031ea4c3473b8cb Mon Sep 17 00:00:00 2001 From: Maarten Maathuis Date: Fri, 6 Feb 2009 19:13:19 +0100 Subject: [PATCH] titlebar: don't resize window when adding titlebar. Signed-off-by: Julien Danjou --- lib/awful/titlebar.lua.in | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index c86d6bf7..5e751c06 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -117,18 +117,8 @@ function add(c, args) tb.widgets = { appicon = appicon, title = title, closef = closef, close = close } - -- Store old geometry (including borders) - local old_geom = c:geometry() - c.titlebar = tb - -- Resize the client so the same amount of space is occupied as before. - -- But not when it's a dialog, because applications remember this new size. - -- And everytime you open the dialog it shrinks further. - if c.type ~= "dialog" then - c:geometry(old_geom) - end - update(c) update(c, "geometry") end