Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
animate: Add squeezimize animation (#2408)
* animate: Add squeeimize animation * Fix clipping * Fix minimize to bottom * Improve squeezimize animation * Fix minimize to bottom (again) * Initialize last_direction variable This fixes disappearing windows on animation start after reversing the animation once. * Fixup object lifetime * Add options for squeezimize * Compute bounding box for animation damage * Port to shader * Fix downward squeezimize * Drop squeezimize line height option This optimization is no longer needed since we are using a fast fragment shader now. * Fix builtins * Omit unnecessary conditional in shader * Simplify animation initialization function * Fix squeezimize for shaded views * squeezimize: Update animation geometry each frame This makes it so it doesn't get the wrong clipping area when other transformations are applied. * Use more unique name for transformer name variable This will help avoid conflicts of the same variable name in scope. * squeezimize: Update according to suggestions in review * squeezimize: Drop damage pre_hook This is taken care of in transform_damage_region(). * squeezimize: Avoid storing view on transformer * squeezimize: Fix typo * animate: Set default squeezimize duration to 150ms * animate: Minimize to bottom center of output if target is not set
- Loading branch information