Re: Writing a layout - where does the p parameter come from?

2009-06-03 Thread Julien Danjou
At 1243975693 time_t, Nathan Huesken wrote: - What is the difference between workarea and geometry? Geometry is the screen geometry, i.e., the number of pixels available from left to right. Workarea is the same thing, but minus the wibox and the client that have struts (i.e. panel like

Re: Writing a layout - where does the p parameter come from?

2009-06-03 Thread Nathan Huesken
Hi, Unfortantly I have little success with this. So I have this function in tag.lua: --- Return the division tree of the tag function getdivisiontree(t) local t = t or selected() local tree tree = getproperty(t, division_tree) or {} if #tree==0 then tree={}

Re: Writing a layout - where does the p parameter come from?

2009-06-03 Thread Nathan Huesken
from tag.lua function setproperty(tag, prop, value) if not data.tags[tag] then data.tags[tag] = {} -- this is line 304 end data.tags[tag][prop] = value end The getdivisiontree is called from on_arrange. Could it be, that it is called at a time there are

Re: Writing a layout - where does the p parameter come from?

2009-06-02 Thread Julien Danjou
Hi Nathan, At 1243891357 time_t, Nathan Huesken wrote: So I am looking at the tile layout as reference. It seems, that its parameters are stored in the current tag ... No I wonder, what would I have to do to get my parameters in. And I also wonder how I could remember which client belongs

Re: Writing a layout - where does the p parameter come from?

2009-06-02 Thread Nathan Huesken
Hello, Thanks for you answer Julien, now I feel like I am almost there. 2 Questions: - What is the difference between workarea and geometry? - OK, I can set simple properties of a tag and a client using setproperty. But I need something more complex. I need to store a tree structure telling me

Re: Writing a layout - where does the p parameter come from?

2009-06-02 Thread Gregor Best
On Tue, Jun 02, 2009 at 10:48:13PM +0200, Nathan Huesken wrote: [...] - OK, I can set simple properties of a tag and a client using setproperty. But I need something more complex. I need to store a tree structure telling me how the area has been divided. So I need a root-node object, stored