From: Arnout E. <no...@bz...> - 2011-10-21 23:11:36
|
On Fri, Oct 21, 2011 at 10:38:00PM +0100, David Given wrote: > On 21/10/11 11:34, David Given wrote: > [...] > > Possibly rather than try to change the defwinprop behaviour, it would be > > better to do this via new behaviour? > > New patch enclosed --- much simpler, doesn't change existing behaviour, > and more flexible. Use it like this: > > tweakwinprop( > function(prop, cwin, id) > if (prop.float == nil) then > prop.float = true > end > end) > > How does that sound? Seems quite short and sweet. 'Define a tweak' is a bit too terse for the documentation imho - you should at least explain what a 'tweak' is/does. Is 'tweak' a good name? Does anyone else have a chance to look at the proposed change? Is this a reasonable approach? Arnout |