mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 01:48:59 +02:00
debug: some applications don't have a name
For example, when not playing, the new version of Spotify doesn't expose a name. Handle that when displaying window information.
This commit is contained in:
parent
eafed94545
commit
db2d169a57
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ local function dbg_get(var, depth, indent)
|
|||
end
|
||||
else
|
||||
if vtype == "tag" or vtype == "client" then
|
||||
name = " [<span color='"..colors.name.."'>" .. var.name:sub(1,10) .. "</span>]"
|
||||
name = " [<span color='"..colors.name.."'>" .. (var.name or '…'):sub(1,10) .. "</span>]"
|
||||
end
|
||||
text = text .. vstring .. name or ""
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue