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,
|
raise = true,
|
||||||
keys = clientkeys,
|
keys = clientkeys,
|
||||||
minimized = false,
|
minimized = false,
|
||||||
|
size_hints_honor = false,
|
||||||
buttons = clientbuttons
|
buttons = clientbuttons
|
||||||
},
|
},
|
||||||
-- print name and class of new windows for debugging purposes
|
-- print name and class of new windows for debugging purposes
|
||||||
callback = function(c)
|
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"])
|
print("name: " .. c["name"])
|
||||||
|
end
|
||||||
|
if (c["class"] ~= nil) then
|
||||||
print("class: " .. c["class"])
|
print("class: " .. c["class"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue