awful.client.property.get: fix loading multiple persistent properties

When loading persistent properties for a client, the loop value wasn't used,
but the original/requested property.  This would only get triggered when
using more than one persistent client property (the default is one,
"floating").
This commit is contained in:
Daniel Hahler 2015-02-08 02:46:40 +01:00
parent 516dd91027
commit 3a160c9363
1 changed files with 1 additions and 1 deletions

View File

@ -874,7 +874,7 @@ function client.property.get(c, prop)
if not client.data.persistent_properties_loaded[c] then if not client.data.persistent_properties_loaded[c] then
client.data.persistent_properties_loaded[c] = true client.data.persistent_properties_loaded[c] = true
for p in pairs(client.data.persistent_properties_registered) do for p in pairs(client.data.persistent_properties_registered) do
local value = c:get_xproperty("awful.client.property." .. prop) local value = c:get_xproperty("awful.client.property." .. p)
if value ~= nil then if value ~= nil then
client.property.set(c, p, value) client.property.set(c, p, value)
end end