Bug 442243

Summary: Latte Dock (Panel) is still marked as 'inhibiting sleep' when the battery applet's 'Inhibit sleep' button is toggled off.
Product: [Plasma] lattedock Reporter: Lemuel Simon <lemuelsimon32>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lemuelsimon32
Priority: NOR    
Version: 0.10.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the battery applet in Latte Dock (panel). After toggling off the 'Inhibit automatic sleep' button in the battery applet, Latte-dock is still being reported as 'inhibiting sleep'.

Description Lemuel Simon 2021-09-09 23:43:42 UTC
Created attachment 141433 [details]
Screenshot of the battery applet in Latte Dock (panel). After toggling off the 'Inhibit automatic sleep' button in the battery applet, Latte-dock is still being reported as 'inhibiting sleep'.

SUMMARY
After toggling off the 'Inhibit automatic sleep' button in the battery applet, Latte-dock is still being reported as 'inhibiting sleep and screen locking' in the applet. With Vivaldi, Falkon and Dragon Player, during media playback they show up in the battery applet and disappear when the video is paused or stopped (as they should). However, Latte-dock persists. I've also performed the 'Inhibit' toggle in the battery applet in Plasma's own panel, the error doesn't occur there, it seems specific to Latte-dock.


STEPS TO REPRODUCE
1. Open the battery applet on the Latte-dock.
2. Toggle the 'Inhibit screen locking and sleep' button to 'on'
3. Toggle the 'Inhibit screen locking and sleep' button to 'off'

OBSERVED RESULT
Even when toggled off, the battery applet reports the following: 'lattedock is inhibiting sleep and screen locking (The battery applet has enabled system-wide inhibition)'.

EXPECTED RESULT
When toggled off, Latte-dock should NOT be marked as inhibiting sleep and screen locking by the battery applet.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Leap 15.3
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.3.18-57-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3320M CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4000

ADDITIONAL INFORMATION
Comment 1 Lemuel Simon 2021-09-17 16:46:00 UTC
Ok, I did some searching around, it seems like this bug in Plasma rather than Latte: https://bugs.kde.org/show_bug.cgi?id=433675 . The bug is just immediately apparent in Latte Dock. I'm wondering if I should close this?
Comment 2 Michail Vourlakos 2021-09-17 18:14:21 UTC

*** This bug has been marked as a duplicate of bug 433675 ***