From cf870d78a56db5f788b64878fbb2cb2e39aeaa4e Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 19 Feb 2015 11:02:29 +0100 Subject: [PATCH] Fix debug output for clients, that have a missing name or class (e.g. Steam) --- rules.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rules.lua b/rules.lua index 5c6cc98..1f5115c 100644 --- a/rules.lua +++ b/rules.lua @@ -28,13 +28,16 @@ local function setup(self) raise = true, keys = clientkeys, minimized = false, + size_hints_honor = false, buttons = clientbuttons }, -- print name and class of new windows for debugging purposes callback = function(c) - if(c["name"] ~= nil and c["class"] ~= nil) then - print("-----------\nnew client\n") + print("-----------\nnew client\n") + if (c["name"] ~= nil) then print("name: " .. c["name"]) + end + if (c["class"] ~= nil) then print("class: " .. c["class"]) end end