pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

Scroll input sent to focused app on a different workspace #599

Open jacobgkau opened 5 days ago

jacobgkau commented 5 days ago

I still occasionally scroll in one app (e.g. Firefox), switch to another workspace, and find that another app (e.g. Inkscape) has been scrolled too. The trigger seems to be not focusing the app I'm scrolling in. (E.g. quickly switching back & forth between two workspaces, I may be working in one window and referencing another. I scroll around in the window I'm referencing, but never actually click it, and therefore never actually focus it. The focused window on the other workspace scrolls when I don't want it to.)

Scrolling an app on one workspace should not scroll any apps in other workspaces. Either scrolling input needs to be sent to the current workspace only regardless of app focus, or we need to make sure an app in the current workspace is always focused after switching (and a window in a background workspace does not remain focused).