gnome-shell-wsmatrix icon indicating copy to clipboard operation
gnome-shell-wsmatrix copied to clipboard

[gnome 40] Slide workspace using gestures plays animation twice.

Open MonsieurLanza opened this issue 4 years ago • 20 comments

I just got my hands on a new laptop, which can handle gestures… You can slide workspaces with 3 fingers, left or right (yeah, there’s already an issue with the gesture itself here, in case of vertical sliding).

What happens is that when I slide a workspace (always horizontally, as I said), it re-plays the animation afterward, which is a somewhat awkward.

(may include video later on, if gnome-shell and my schedule let me record it)

MonsieurLanza avatar Sep 27 '21 13:09 MonsieurLanza

Can someone with a device supporting gestures please confirm this?

@MonsieurLanza Is the animation correct if this extension is disabled?

mzur avatar Oct 06 '21 18:10 mzur

This happens to me as well, on Fedora 34 Gnome 40.4. Most other ways of traversing workspaces look fine but using touchpad gestures does this double animation playback thing. It does not happen without this extension.

KristianOde avatar Oct 14 '21 13:10 KristianOde

Thanks @KristianUSN! Now we need someone with an appropriate device to have a look at the code.

mzur avatar Oct 14 '21 19:10 mzur

Here is what happens, first without wsmatrix extension, then with it activated. https://user-images.githubusercontent.com/4181623/137733240-442d3c04-0d85-4950-9a96-b8f6e2353283.mp4

Note that I only did simple swipe, the gnome animation follows the gesture : you can go back and forth when swiping.

MonsieurLanza avatar Oct 18 '21 12:10 MonsieurLanza

@MonsieurLanza touchegg with <action type="SEND_KEYS"> for changing workspaces works perfectly for me. But I should mention that gnome-shell-extension-x11gestures does not needed for this case and causes some problems.

pnkov avatar Oct 20 '21 12:10 pnkov

I can confirm the problem happens for me too, seems like the event "workspace changed from x to y" is triggerred after the gesture is over (always left-right or right-left) and so workspace matrix animation is played while visually we already have the feeling of being on the right workspace.

When using the keyboard only workspace matrix animation is displayed (with the right direction, including up/down).

Not sure that helps but that's what I think happens.

Note that now with gnome the gesture is not a single event but you can maintain it between 2 workspaces for instance, so the real action is at release.

Barben360 avatar Feb 09 '22 14:02 Barben360

Not sure what's the correct procedure but +1, having the same issue.

JorgeSivil avatar Aug 16 '22 14:08 JorgeSivil

just to add some extra details, it's not actually true that the animation is played twice, rather, two things happen.

  • swiping (even partially) slides the desktops left or right. this is not an actual animation, rather, the reaction to the swipe (that can be interrupted), kind of like scrolling within a window
  • once you release the three fingers, the "animation" ends on the desktop, but then a gnome-shell animation gets triggered

this explanation is harder to understand in writing than to see in action, once you disable gnome-shell's animations it'll be clearer: gsettings set org.gnome.desktop.interface enable-animations false incidentally, i find that disabling animations works better with this extension in general, but you might disagree :)

myyc avatar Jun 16 '23 09:06 myyc

I have the same issue. I agree with what myyc said. Also, even if animations are disabled the behavior is a bit glitchy. You see a flicker of the previous screen once you are done swiping.

filipemiguel97 avatar Jul 03 '23 11:07 filipemiguel97

I have the same issue on GNOME 44.2, Wayland, Ubuntu 23.04. When I disable the extension, workspace switching via swiping works fine, so the solution to this issue might be to remove the workspace switching code if the GNOME version is high enough? You would definitely need to keep the wrap-around feature though since GNOME doesn't support it. Wrap-around is my primary reason for using this extension :)

klondikemarlen avatar Jul 15 '23 19:07 klondikemarlen