--
-- ion/share/ioncore_winprops.lua
--
--- Copyright (c) Tuomo Valkonen 2004-2006.
+-- Copyright (c) Tuomo Valkonen 2004-2007.
--
-- Ion is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License as published by
end
end
-ioncore.set_get_winprop_fn(ioncore.getwinprop)
+ioncore.set{_get_winprop=ioncore.getwinprop}
local function ensure_winproptab(class, role, instance)
if not winprops[class] then
--DOC
-- The basic name-based winprop matching criteria.
function ioncore.match_winprop_name(prop, cwin)
- local nm=cwin:name()
if not prop.name then
return true
- elseif nm then
- local st, en=string.find(nm, prop.name)
- return (st and en)
else
- return false
+ local nm=cwin:name()
+ if nm then
+ local st, en=string.find(nm, prop.name)
+ return (st and en)
+ else
+ return false
+ end
end
end