From: David G. <dg...@co...> - 2011-11-10 23:20:58
|
On 06/11/11 14:01, Arnout Engelen wrote: [...] > Even better might be to use the existing 'hook' infrastructure: when a client > window is created, you could then set it to 'float' in a hook that runs after > creation and before the winprops are applied. Sorry about the delay, I've been swamped with stuff... Ah, I didn't find hooks. That's obviously the way to go. [...] > * adding a hook that fires when initializing a client window, before winprops > are applied [...] > Does that make sense? How does it compare to the other proposed solution? This approach does mean changing things on the C side. Is there any difference between doing things at this stage with a clientwin_init hook, rather than adding the new hook after the winprop table has been looked up in the Lua side of things? It *should* have the same effect in the long run (winprops set by the hook override winprops set by defwinprop). -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "Under communism, man exploits man. Under capitalism, it's just the │ opposite." --- John Kenneth Galbrith |