[compiz] [PATCH] Resize improvements (Multiple resize modes,
better aspect ratio constraining)
dannybaumann at web.de
Fri Apr 27 01:40:51 PDT 2007
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
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