[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: session management with desktop and window configuration
From: |
martin rudalics |
Subject: |
Re: session management with desktop and window configuration |
Date: |
Fri, 01 Jan 2010 16:18:40 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
>> My current code allows to specify the sizes of windows directly. It
>> only checks whether the sizes fit - if they do it applies them
>
> Is there an elisp function to access it?
Sure. I currently do practically all resizing in Elisp.
>> (in one
>> direction only though - so for resizing horizontally and vertically you
>> have to run the code twice).
>
> Don't you have to run it once for every node in the window tree?
I have a simple C routine which traverses the window tree and checks
whether the proposed new sizes fit together and don't violate the
absolute minimum sizes. If the test succeeds, I set the real sizes to
the proposed ones and assign the new top lines (or left columns).
Otherwise the resize operation fails.
martin