mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 21:04:21 +02:00
shifty: handle position being null
This commit is contained in:
parent
ab60407f8a
commit
472801975d
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ end
|
|||
local function setname(t, name)
|
||||
if name then
|
||||
local dispname = "" .. name
|
||||
local pos = awful.tag.getproperty(t, "position")
|
||||
local pos = awful.tag.getproperty(t, "position") or "?"
|
||||
awful.tag.setproperty(t, "shortname", name)
|
||||
if pos then
|
||||
if "" .. pos ~= "" .. dispname then
|
||||
|
@ -606,7 +606,7 @@ function match(c, startup)
|
|||
table.insert(target_tags, t)
|
||||
if config.guess_name and cls then
|
||||
if getname(t) == config.default_name or
|
||||
getname(t) == "" .. awful.tag.getproperty(t, "position") then
|
||||
getname(t) == "" .. (awful.tag.getproperty(t, "position") or "?") then
|
||||
setname(t, cls:lower())
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue