mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-30 05:14:22 +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)
|
local function setname(t, name)
|
||||||
if name then
|
if name then
|
||||||
local dispname = "" .. name
|
local dispname = "" .. name
|
||||||
local pos = awful.tag.getproperty(t, "position")
|
local pos = awful.tag.getproperty(t, "position") or "?"
|
||||||
awful.tag.setproperty(t, "shortname", name)
|
awful.tag.setproperty(t, "shortname", name)
|
||||||
if pos then
|
if pos then
|
||||||
if "" .. pos ~= "" .. dispname then
|
if "" .. pos ~= "" .. dispname then
|
||||||
|
@ -606,7 +606,7 @@ function match(c, startup)
|
||||||
table.insert(target_tags, t)
|
table.insert(target_tags, t)
|
||||||
if config.guess_name and cls then
|
if config.guess_name and cls then
|
||||||
if getname(t) == config.default_name or
|
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())
|
setname(t, cls:lower())
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue