-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
+function ioncore.match_winprop_dflt(prop, cwin, id)
+ local function chkf(p, i)
+ if p==nil then
+ return true
+ else
+ return (p==(i and true or false))
+ -- hack for nil i
+ end
+ end
+
+ if not chkf(prop.is_transient, id.is_transient) then
+ return false
+ end
+
+ if not chkf(prop.is_dockapp, id.is_dockapp) then