Fix debug output for clients, that have a missing name or class (e.g. Steam)

This commit is contained in:
crater2150 2015-02-19 11:02:29 +01:00
parent d45429f304
commit cf870d78a5

View file

@ -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