Bug 372957 - Scrolling in system tray switches desktop
Summary: Scrolling in system tray switches desktop
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray (show other bugs)
Version: 5.8.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 372812 373042 373331 373712 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-26 14:10 UTC by Kishore Gopalakrishnan
Modified: 2016-12-20 16:43 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.8.5


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2016-11-26 14:10:46 UTC
Scrolling in the system tray on any icon except the 'battery and brightness' icon switches desktops. On the 'battery and brightness' icon, it shows the expected behaviour of changing brightness.

Steps to reproduce: Scroll with the mouse wheel while the cursor is on any system tray icon other than the 'battery and brightness' icon.

Expected behaviour: Scrolling should either perform no action, or an action depending on the icon (change volume, brightness etc.).

Problem appears in versions 5.8.3 and 5.8.4 (Not sure which one to mark on report).

If it helps, I could fix the problem by downgrading the 'plasma-workspace' [https://www.archlinux.org/packages/extra/x86_64/plasma-workspace/] package to version 5.8.2-1. Was able to reproduce in a different user, and in a VM.
Comment 1 Marco Martin 2016-11-30 11:11:07 UTC
*** Bug 373042 has been marked as a duplicate of this bug. ***
Comment 2 Marco Martin 2016-11-30 12:44:57 UTC
it doesn't seem to happen on a clean setup.
on an old session i had the wheel plugin erroneously setted for panel type containments, so in some cases it appears to be possible that this wrong setting gets written in the config file
Comment 3 Kishore Gopalakrishnan 2016-11-30 14:05:19 UTC
(In reply to Marco Martin from comment #2)
> it doesn't seem to happen on a clean setup.
> on an old session i had the wheel plugin erroneously setted for panel type
> containments, so in some cases it appears to be possible that this wrong
> setting gets written in the config file

I created a new user, and the problem doesn't occur in it. Can you give me some pointers on which config files I should be looking at?
Comment 4 Iris Morelle 2016-11-30 20:47:04 UTC
So after reading Marco's comment above I decided to have a look at Plasma's configuration files, .config/plasma-org.kde.plasma.desktop-appletsrc in particular, and I found this bit:

  [ActionPlugins][129]
  MidButton;NoModifier=org.kde.paste
  RightButton;NoModifier=org.kde.contextmenu
  wheel:Vertical;NoModifier=org.kde.switchdesktop

I stopped plasmashell, removed the `wheel:Vertical;NoModifier=org.kde.switchdesktop` line and started plasmashell again, and the wheel no longer has an effect on the system tray icons or arrow or the dead space between icons. Not sure how this configuration ended up here in the first place. I thought it could be related to the Mouse Actions tab in the desktop configuration, but adding an action to switch desktops on wheel presses didn't seem to affect the system tray at all.

Note that before editing the config file I had tried removing and readding the system tray widget, and adding a new panel using the Default Panel preset; neither made a difference.
Comment 5 Christoph Feck 2016-11-30 21:02:34 UTC
The issue is that the wheel event is passed to the lower widget (in this case the desktop). The systray should always accept the wheel event to prevent this. See related bug.
Comment 7 Christoph Feck 2016-12-07 18:37:30 UTC
*** Bug 372812 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2016-12-07 18:38:30 UTC
*** Bug 373331 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2016-12-20 16:43:53 UTC
*** Bug 373712 has been marked as a duplicate of this bug. ***