lucasresck / gnome-shell-extension-alt-tab-scroll-workaround

Quick fix to the bug where scrolling in one application is repeated in another when switching between them using Alt+Tab (e.g., VS Code and Chrome)
https://extensions.gnome.org/extension/5282/alttab-scroll-workaround/
GNU General Public License v3.0
208 stars 11 forks source link

Not working on Fedora 39 #37

Open ant1g opened 1 week ago

ant1g commented 1 week ago

Hello, I have desperately been trying to find a solution for the VSCode scroll jumping issue with my current setup. I have installed & enabled this extension but it doesn't solve the problem, neither for Alt + Tab nor hot corners...

Here is my setup:

$ cat /etc/os-release 
NAME="Fedora Linux"
VERSION="39 (Workstation Edition)"
ID=fedora

Gnome version:

$ gnome-shell --version
GNOME Shell 45.7

Extension version:

$ gnome-extensions info alt-tab-scroll-workaround@lucasresck.github.io
alt-tab-scroll-workaround@lucasresck.github.io
  Name: Alt+Tab Scroll Workaround
  Description: Quick fix to the bug where scrolling in one application is repeated in another when switching between them using Alt+Tab (e.g., VS Code and Chrome).
  Path: /home/antoine/.local/share/gnome-shell/extensions/alt-tab-scroll-workaround@lucasresck.github.io
  URL: https://github.com/lucasresck/gnome-shell-extension-alt-tab-scroll-workaround
  Version: 7
  State: INITIALIZED

No other relevant gnome extensions installed:

$ gsettings get org.gnome.shell enabled-extensions
['background-logo@fedorahosted.org', 'alt-tab-scroll-workaround@lucasresck.github.io']

VScode version:

$ code --version
1.90.0
89de5a8d4d6205e5b11647eb6a74844ca23d2573
x64

Brave version: Version 1.67.116 Chromium: 126.0.6478.71 (Official Build) unknown (64-bit)

lucasresck commented 1 week ago

Hi, @ant1g, thank you for reaching out.

From what you described, I would expect the extension to work well as it already supports GNOME 45. My only guess would be Fedora, but I think that debugging this is a little bit trickier.

Two things can be the cause of the problem: the extension is not working at all, or what the extension does doesn't help.

The extension works by moving the cursor to the same position when Alt+Tab is used, and this clears the scroll buffer. However, a similar approach also clears the buffer: moving the cursor to the status bar (top bar outside the window).

What happens if you move your cursor to the status bar and bring it back to the window before pressing Alt+Tab?