On Mon 12.Oct'09 at 13:31:48 +0100, Iain Patterson wrote:
> Try this patch. By querying the window-specified resize increments in
> the same way that wWindowConstrainSize() does we can ensure that the
> resize works properly.
Your patch works here, but I didn't quite like the end result for my
xterms, as they now are resized too slowly and they don't respect
the WPrefs configuration anymore.
> * Scaling the resize by the desired increment where the window does
> constrain its size. So if you set the increment to 100 in WPrefs and
> and xterm wants to resize by 15x7 then what would actually happen is
> that it would resize by 90x42.
Yeah, this is desired goal I guess.
And to implement the 15x7 --> 90x42 isn't it enough to do a "lower bound"
division, like 100/15 = 6 in scale the corrections by it? Something like
if (wwin->normal_hints) {
scale = wPreferences.resize_increment /
wwin->normal_hints->width_inc;
resize_width_increment = wwin->normal_hints->width_inc * scale;
resize_height_increment = wwin->normal_hints->height_inc *
scale;
}
Did you try something like it?
--
To unsubscribe, send mail to [email protected].