You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Squeezemize looks bad if minimize area is too narrow #2720
If setting a minimize area (by set_rectangle) with a very small width, the animation looks "bad": the view being minimized is squeezed too much too early, becoming a thin line.
Real-world use case: under some conditions, Cairo-Dock will try to set a rectangle with width = height = 1 (see here and here) This is easy to fix, but I thought to raise this here as a general issue.
I'll look into the squeezimize plugin and suggest an improvement if I can.
If setting a minimize area (by set_rectangle) with a very small width, the animation looks "bad": the view being minimized is squeezed too much too early, becoming a thin line.
I'm not sure this should be considered as a bug. This is the way squeezimize animation works, and the algorithm is baked into the fragment shader.
I'll look into the squeezimize plugin and suggest an improvement if I can.
Thanks, this already looks better! But I also started tinkering, and feel that I cannot rest until I figure out how the shader works :D I'll report back if I find anything...
@dkondor Here is what I've found to be an improvement. It should solve the problem of being too slender too quickly, and smooth out the animation so it's less jarring overall. Let me know what you think. If it's good, I can submit a PR.
Activity
soreau commentedon Jul 12, 2025
I'm not sure this should be considered as a bug. This is the way squeezimize animation works, and the algorithm is baked into the fragment shader.
Good luck! 😀
soreau commentedon Jul 12, 2025
That said, I tinkered around with the shader a bit and came up with this. Does it make the animation more in line with what you're expecting?
dkondor commentedon Jul 12, 2025
Thanks, this already looks better! But I also started tinkering, and feel that I cannot rest until I figure out how the shader works :D I'll report back if I find anything...
soreau commentedon Jul 12, 2025
I wrote it from scratch, but I'm not completely sure how it works even still. 😆
If you have any questions, feel free to ask. 👍
soreau commentedon Jul 12, 2025
@dkondor Here is what I've found to be an improvement. It should solve the problem of being too slender too quickly, and smooth out the animation so it's less jarring overall. Let me know what you think. If it's good, I can submit a PR.
soreau commentedon Jul 12, 2025
Here's another variation that might be even better:
animate: Improve squeezimize animation
dkondor commentedon Jul 13, 2025
I've just checked #2721 it works nicely. Thanks for looking into this so quickly!
animate: Improve squeezimize animation (#2721)