wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

scale: uncomfortable animation when switching workspaces

Open lilydjwg opened this issue 3 years ago • 2 comments

Describe the bug

See title.

To Reproduce Steps to reproduce the behavior:

  1. Enable scale plugin and activate toggle_all
  2. Select a window on a different workspace
  3. In the animation the window moves too far from its destination and then moves back.

Expected behavior

The window should move directly towards its destination, like when not switching workspaces at the same time.

Screenshots or stacktrace If you can't reproduce the issue I can take time to get a screen record.

Wayfire version git, with a few unrelated patches.

lilydjwg avatar Nov 17 '21 06:11 lilydjwg

Hi, I think this depends on the speed of animations set for scale vs vswitch. If I set scale/duration to the same value as vswitch/duration, then the animation looks much better. Maybe there could be a way for the scale plugin to override the animation duration when switching workspaces?

dkondor avatar Dec 30 '21 16:12 dkondor

Changing the two duration to the same helps and it's much smoother, but still not ideal. I come up an idea and set both to 0, unfortunately it still flickers one or two frames.

lilydjwg avatar Dec 31 '21 04:12 lilydjwg