From 472801975deae331b5dde331e407ee00d2a6d17f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 5 Aug 2014 09:28:05 +0200 Subject: [PATCH] shifty: handle position being null --- lib/shifty.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shifty.lua b/lib/shifty.lua index ce9f7f5..70cef34 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -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