From e0629272b5687a2003280c492e644f71d71f5fe9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 3 Sep 2008 20:22:33 +0200 Subject: [PATCH] client: honorsizehints is now default Signed-off-by: Julien Danjou --- awesomerc.lua.in | 4 ++-- client.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 3f201dce..496142ce 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -407,8 +407,8 @@ awful.hooks.manage.register(function (c) -- i.e. put it at the end of others instead of setting it master. -- awful.client.setslave(c) - -- Honor size hints - c.honorsizehints = true + -- Honor size hints: if you want to drop the gaps between windows, set this to false. + -- c.honorsizehints = false end) -- Hook function to execute when arranging the screen diff --git a/client.c b/client.c index 74512472..e0cb2b71 100644 --- a/client.c +++ b/client.c @@ -434,6 +434,9 @@ client_manage(xcb_window_t w, xcb_get_geometry_reply_t *wgeom, int screen) client_setborder(c, wgeom->border_width); c->icon = ewmh_window_icon_get_reply(ewmh_icon_cookie); + /* we honor size hints by default */ + c->honorsizehints = true; + /* update hints */ client_updatesizehints(c); client_updatewmhints(c);