[compiz] [PATCH] Resize improvements (Multiple resize modes, better aspect ratio constraining)

Danny Baumann dannybaumann at web.de
Fri Apr 27 01:40:51 PDT 2007


Hi,

> 0002-Do-not-make-constrainNewWindowSize-depend-on-the-act.patch
> This one updates constrainNewWindowSize so that it returns TRUE if the
> new calculated size does not match the old, passed size rather than the
> window's server size.

I just noticed that this patch has some implications on existing usages
of constrainNewWindowSize which cause these to not work properly. Please
find attached a patch which extends the mentioned patch by fixing those
existing usages of this function.
We still need this patch, however, because otherwise we can't know if
any constraining was done by constrainNewWindowSize when called using
outline resize mode as in this mode, w->serverWidth/Height will be
constant all the time. I also believe making the return value depend on
the information if there was actual constraining done makes a cleaner
API.

Regards,

Danny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-constrainnewwindowsize-return-true-if-constraining-applied.diff
Type: text/x-patch
Size: 2071 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/compiz/attachments/20070427/1740a4db/make-constrainnewwindowsize-return-true-if-constraining-applied.bin


More information about the compiz mailing list