On Fri, Jan 16, 2009 at 09:39:55AM -0600, Donald Ephraim Curtis wrote:
> Is there a way we could just add size hint awareness to my variable
> layout?  What I understand is that your adaptable layout doesn't
> consider variable height (except hinting) so the math is going to be the
> big difference when it comes to moving to a variable height.  What I am
> saying is that starting from yours means re-coding the math, starting
> from what I have means adding hinting awareness?

Actually, looking at your code, I'd prefer to insert weights support into
adaptile... At the moment, to chose a window height, I divide the remaining
height in a column by the number or client yet to resize (line 56), this 
could easily be changed to take into account window weights.

I started by trying to add hints support to tile, but I eventually saw that the
way tile did it's work was not adapted at all, so I wrote a brand new tiling
function which is, IMHO, conceptually cleaner. As your code seems to be very
similar to tile, I think trying to add hinting support in it will lead to the
same problems I had.

If I understood your code well, most of the work is actually out of vile.lua, 
so we could keep all that.

Even better, we could add to awful a function to get window weight independant
from the tiling algorithm so that this could be used by other compatible
layouts.

What do you think ? Did I miss something on how Vile works ?

Cheers,

Mawww.


-- 
To unsubscribe, send mail to [email protected].

Reply via email to