Fix debug output for clients, that have a missing name or class (e.g. Steam)
This commit is contained in:
parent
d45429f304
commit
cf870d78a5
|
@ -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")
|
||||
if (c["name"] ~= nil) then
|
||||
print("name: " .. c["name"])
|
||||
end
|
||||
if (c["class"] ~= nil) then
|
||||
print("class: " .. c["class"])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue