wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Sometimes expo plugins fail to switch to the workspace clicked by the mouse.

Open xiaohuirong opened this issue 1 year ago • 2 comments

Describe the bug Clicking on the workspace you want to switch to when the expo plugin animation has just ended will fall back to the current workspace.

Expected behavior Able to switch correctly to the workspace clicked by the mouse.

Video https://drive.google.com/file/d/1PXhNelTAb5alix3HdREiisN7247rwYGv/view?usp=drive_link In this video, I want to switch from the 4th workspace to the 5th workspace, eventually falling back to the 4th workspace. To make it easier to reproduce this issue, you can set a longer animation duration.

Wayfire version wayfire-0.8.0.r53.ge2efa57e built from commit e2efa57e

xiaohuirong avatar Dec 20 '23 11:12 xiaohuirong

Expo currently explicitly disables handling of clicks during the animation, because we'd need some more code to correctly be able to map input coordinates to the proper workspace.

ammen99 avatar Dec 20 '23 11:12 ammen99

Indeed, Expo does not support interrupting animations with mouse clicks. However, at the moment the animation ends, the Expo plugin exhibits incorrect behavior. My expectation is that the Expo plugin should, at the very least, not respond to clicks at the instant of animation completion, rather than erroneously switching back to the previous workspace.

xiaohuirong avatar Dec 20 '23 12:12 xiaohuirong

Actually seems like a duplicate of #1863

ammen99 avatar Mar 08 '24 11:03 ammen99