Bug 480752

Summary: Night Color applet interacts weirdly with middle click
Product: [Plasma] plasmashell Reporter: Martino Fontana <tinozzo123>
Component: Brightness and Color widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: fanzhuyifan, kwin-bugs-null, natalie_clarius, nate, vlad.zahorodnii
Priority: NOR Keywords: qt6, usability
Version First Reported In: 5.93.0   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Martino Fontana 2024-02-02 21:44:34 UTC
SUMMARY

In Plasma 5, middle-clicking the night color applet simply toggles it on and off.

However, now it toggles some strange states:
- In the "normal" state (when you start Plasma), with left-clicks you can toggle night color on and off, as usual.
- In the "weird" state, with left-clicks you can toggle "Not running" and "Off", both of which have night color disabled.

(With "left-clicks", I mean opening the applet's window and clicking on the toggle there)

STEPS TO REPRODUCE
1. Have night color set up
2. Middle-click the applet
3. Try changing the state with left-clicks

OBSERVED RESULT
Left clicks toggle between "Not running" and "Off", until you middle-click the applet again

EXPECTED RESULT
Middle-clicks should be the same as left-clicks, with the difference that you skip opening the applet's window. (Just like in Plasma 5)

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.05
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.7.3-cachyos (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
Comment 2 Nate Graham 2024-04-09 14:12:15 UTC
The Night Color applet was merged with the Brightness applet in Plasma 6, and middle-clicks are handled differently there, so the issue as originally described can't happen anymore. :)