pop-os / touchegg

Pop!_OS fork of https://github.com/JoseExposito/touchegg
GNU General Public License v3.0
37 stars 4 forks source link

Switching workspaces with gestures sometimes gets interrupted and reverts to previous workspace #7

Open doughsay opened 2 years ago

doughsay commented 2 years ago

(1) Issue/Bug Description:

After a recent update I've noticed a really annoying behavior when switching workspaces. It seems to happen only when using the touch-pad gestures (4-finger swipe up/down). Basically, if I'm swiping between workspaces quickly, it seems sometimes one of the windows steals focus after I scroll past it. So it yanks me back to that desktop rudely, interrupting where I was trying to go.

It's easily reproducible for me by just opening multiple firefox windows on multiple workspaces, and just swiping up and down between them using the 4-finger touch pad gesture.

(2) Steps to reproduce (if you know):

  1. Use tiled windows (no active hint, no window titles, gaps: 2)
  2. Open 3+ firefox windows each in their own workspace
  3. Enable "focus follows mouse" in Tweaks (I have this on but turning it off doesn't seem to fix is, just mentioning for completeness)
  4. swipe between workspaces using 4-finger swipe touchpad gesture (it's not 100% of the time, you have to try for a bit)
  5. Sometimes, it will quickly switch back to the workspace you just left

(3) Expected behavior:

When I change workspaces, it stays on the workspace I changed to.

(4) Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

(5) Gnome Shell version:

gnome-shell/jammy,now 42.1-0ubuntu0.1pop1~1654265234~22.04~d8fe566 amd64

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

pop-shell:
  Installed: 1.1.0~1654621639~22.04~b299641
  Candidate: 1.1.0~1654621639~22.04~b299641
  Version table:
 *** 1.1.0~1654621639~22.04~b299641 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1001 http://apt.pop-os.org/release jammy/main i386 Packages
        100 /var/lib/dpkg/status

(7) Where was Pop Shell installed from:

apt I assume (came pre-installed)

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

One 3440x1440 Ultrawide

(9) Other Installed/Enabled Extensions:

Sound Input & Output Device Chooser Systemd Manager Vitals Cosmic Dock Cosmic Workspaces COSMIC X11 Gestures Pop COSMIC Pop Shell System76 Power Ubuntu AppIndicators

(10) Other Notes:

Might be relevant: I'm using an Apple Magic Trackpad.

I feel like this didn't happen before and only started happening recently after an update. But this might be related: I think it used to maybe instead give me those "window is ready" notifications. Now instead of those notifications, it steals focus and switches workspaces.

n3m0-22 commented 2 years ago

I'm seeing this happen too on a clean install of 22.04 with no third party extensions or tweaks applied.

https://user-images.githubusercontent.com/11048214/173114546-9e0e1270-6c99-4376-a934-67076c933ad1.mp4

franckgaga commented 2 years ago

I also have this problem since a recent update. I'm not sure but it seems that GNOME Shell X11Gestures extension introduces the issue. Reactive gesture is a nice addition, but this bug make 4-finger swipe less productive than the old configuration (quick non-reactive switching)

edit : tested Pop!_OS on Wayland and same computer and there is no issue. The 1:1 gesture implementation of GNOME Shell X11Gesture extension seems buggy.

franckgaga commented 2 years ago

FYI in the meantime, you can revert to the old non-reactive gestures by disabling the COSMIC X11 Gestures extension and by deleting the file ~/.config/touchegg/touchegg.conf. I personally did that, it works better for workspace switching.

hrdkmishra commented 2 years ago

im having the same problem on endeavor os using pop shell

ak2766 commented 1 year ago

I'm seeing this as well. For me though, it always jumps to the first workspace - all the way left.

System Details ```sh $ lsb_release -id Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS $ apt info touchegg Package: touchegg Version: 202302070101-stable-2.0.16~ubuntu22.04.1 Priority: optional Section: misc Maintainer: José Expósito Installed-Size: 371 kB Depends: libc6 (>= 2.34), libcairo2 (>= 1.2.4), libgcc-s1 (>= 3.3.1), libglib2.0-0 (>= 2.68.0), libgtk-3-0 (>= 3.19.12), libinput10 (>= 0.21.0), libpugixml1v5 (>= 1.4), libstdc++6 (>= 11), libudev1 (>= 183), libx11-6, libxi6 (>= 2:1.2.99.4), libxrandr2 (>= 2:1.2.99.2), libxtst6 Download-Size: 125 kB APT-Manual-Installed: yes APT-Sources: https://ppa.launchpadcontent.net/touchegg/stable/ubuntu jammy/main amd64 Packages Description: Multi-touch gesture recognizer Touchégg is an app that runs in the background and transform the gestures you make in your touchpad into visible actions in your desktop. For example, you can swipe up with 3 fingers to maximize a window or swipe left with 4 finger to switch to the next desktop. ```