BlackCapCoder / compton

A compositor for X11.
Other
98 stars 3 forks source link

Scaling animation #1

Open BlackCapCoder opened 6 years ago

BlackCapCoder commented 6 years ago

Some programs does not handle the scaling animation nicely. if the program cannot render its new size fast enough, the unrendered area of the window might be rendered as black, or white, or not at all during animation.

When scaling down, one solution is to take an image of the program before the scaling takes place, and use that for the animation. This would cause compton to use significantly more memory, because I don't know if a program will change its size until it does, so I would have to store the last frame of all windows.

The best solution I can think of to the upscaling problem is to actually scale the last image I have of the window.

nkkollaw commented 6 years ago

I'm noticing the same thing (using xfwm4).

Is changing some parameters (like animation duration) a solution?

BlackCapCoder commented 6 years ago

Unfortunately not, currently the only solution is to disable size transitions entirely.

nkkollaw commented 6 years ago

Most of the times, it renders transparent pixels, here.

Any clue as to what might be the cause..?

BlackCapCoder commented 6 years ago

I've never seen transparent pixels before. Could you provide a screencast of the issue?

nkkollaw commented 6 years ago

Sorry, I cannot find some software that won't crash my laptop :-/