From 3c67a32045764d4f063700ceb109bca29e50f154 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 26 Jan 2010 00:22:13 +0100 Subject: rc.lua: move honoring size hints to rules --- rc.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rc.lua b/rc.lua index 06b1ff7..f87c5af 100644 --- a/rc.lua +++ b/rc.lua @@ -496,9 +496,8 @@ root.keys(globalkeys) -- {{{ Rules awful.rules.rules = { { rule = { }, properties = { - focus = true, - keys = clientkeys, - buttons = clientbuttons, + focus = true, size_hints_honor = false, + keys = clientkeys, buttons = clientbuttons, border_width = beautiful.border_width, border_color = beautiful.border_normal } }, @@ -537,8 +536,8 @@ awful.rules.rules = { -- -- {{{ Manage signal handler client.add_signal("manage", function (c, startup) - -- Add a titlebar to each floater, and - if awful.client.floating.get(c) -- remove those in rule callback + -- Add titlebar to floaters, but remove those from rule callback + if awful.client.floating.get(c) or awful.layout.get(c.screen) == awful.layout.suit.floating then if c.titlebar then awful.titlebar.remove(c) else awful.titlebar.add(c, {modkey = modkey}) end @@ -552,9 +551,6 @@ client.add_signal("manage", function (c, startup) end end) - -- Honor size hints - c.size_hints_honor = false - -- Client placement if not startup then awful.client.setslave(c) -- cgit v1.2.3