Bug 506091 - Audio Widget Grows In Size After Screen Off Event
Summary: Audio Widget Grows In Size After Screen Off Event
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (other bugs)
Version First Reported In: 6.4.0
Platform: Other Other
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 506181 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-06-24 06:50 UTC by hunterofgypsy
Modified: 2025-07-01 11:25 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.2
Sentry Crash Report:


Attachments
audio widget being bad (14.52 KB, image/png)
2025-06-24 06:50 UTC, hunterofgypsy
Details
audio widget being normal (14.23 KB, image/png)
2025-06-24 06:51 UTC, hunterofgypsy
Details
Showcase of the bug. (27.45 KB, image/png)
2025-06-24 23:31 UTC, madness742
Details
Audio panel open (wrong size). (1.14 MB, image/png)
2025-06-26 02:31 UTC, madness742
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hunterofgypsy 2025-06-24 06:50:40 UTC
Created attachment 182593 [details]
audio widget being bad

STEPS TO REPRODUCE
1. Add a panel and to the panel add Audio Volume widget
2. Turn off monitor and wait for like 10 minutes
3. Turn on monitor

OBSERVED RESULT
Audio Widget grows in size

EXPECTED RESULT
Audio Widget should remain the same size

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 hunterofgypsy 2025-06-24 06:51:01 UTC
Created attachment 182594 [details]
audio widget being normal
Comment 2 hunterofgypsy 2025-06-24 06:53:13 UTC
> SOFTWARE/OS VERSIONS
ARTIX LINUX
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
WAYLAND
ADDITIONAL INFORMATION:
the audio widget is between the clipboard and system tray widgets
Comment 3 madness742 2025-06-24 23:30:57 UTC
I can confirm the same behaviour, but I cannot reproduce it consistently. It happens when waking up the computer from sleep too.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 7900 XTX
Comment 4 madness742 2025-06-24 23:31:18 UTC
Created attachment 182623 [details]
Showcase of the bug.
Comment 5 daniel_moelders 2025-06-24 23:54:34 UTC
Seeing the exact same bug. This didn't use to happen before I updated to Plasma 6.4.0.

Operating System: Arch Linux
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: Linux 6.15.3-2-cachyos
Graphics Platform: Wayland
Graphics Processor: NVIDIA GeForce RTX 4080
Comment 6 cwo 2025-06-25 20:18:21 UTC
Hm, so far I haven't managed to reproduce this.

Can you share some more details about how the panel is arranged? And maybe show a screenshot with the panel widget in the wrong size with the popup open?
Comment 7 madness742 2025-06-26 02:30:00 UTC
(In reply to cwo from comment #6)
> Can you share some more details about how the panel is arranged?
These are the exact steps I took to create my panel.
1. Right click desktop -> Add Panel -> Default Panel.
2. Remove System Tray.
3. Add 'Add Volume' widget to Panel.

> And maybe show a screenshot with the panel widget in the wrong size with the popup open?
Please see the next attachment.
Comment 8 madness742 2025-06-26 02:31:07 UTC
Created attachment 182675 [details]
Audio panel open (wrong size).
Comment 9 JR 2025-06-26 09:32:07 UTC
Waiting a few minutes while the screen sleeps does trigger this for me, but I found it easier to force it by just disconnecting and reconnecting the monitor.
Comment 10 Ismael Asensio 2025-06-26 11:03:45 UTC
*** Bug 506181 has been marked as a duplicate of this bug. ***
Comment 11 cwo 2025-06-26 11:56:18 UTC
I can reproduce it now (with disconnecting and reconnecting), but only on my desktop with a real monitor, not on either laptop when the built-in screen turns off.
Comment 12 Bug Janitor Service 2025-06-26 14:36:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/363
Comment 13 cwo 2025-06-30 18:17:32 UTC
Git commit 74541f649f6adb6308e32f04e118771804ac3b42 by Christoph Wolk.
Committed on 30/06/2025 at 14:37.
Pushed by cwo into branch 'master'.

applet: set minimum size on compactRepresentation

Apparently Plasma can get confused and briefly think that the applet
should be in its fullRepresentation when reconnecting to a disconnected
display. In that case, it will keep the Layout.minimum sizes from that
form, and make the compactRepresentation as wide (or high in case of a
vertical panel) as the fullRepresentation would be (at its minimum, the
switch size). With other applets that use similar layouting strategies
but which use the default compactRepresentation, this does not happen,
as the default compact Representation explicitly sets minimum sizes.

So we do the same here; unsetting seems to work too but for consistency
we set the same minimum sizes as in the default compactRepresentation.
FIXED-IN: 6.4.2

M  +25   -0    applet/main.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/74541f649f6adb6308e32f04e118771804ac3b42
Comment 14 cwo 2025-07-01 11:25:13 UTC
Git commit fd0568d0eb4a7a430e6789f4e7b900b1b833bd8c by Christoph Wolk.
Committed on 01/07/2025 at 11:18.
Pushed by cwo into branch 'Plasma/6.4'.

applet: set minimum size on compactRepresentation

Apparently Plasma can get confused and briefly think that the applet
should be in its fullRepresentation when reconnecting to a disconnected
display. In that case, it will keep the Layout.minimum sizes from that
form, and make the compactRepresentation as wide (or high in case of a
vertical panel) as the fullRepresentation would be (at its minimum, the
switch size). With other applets that use similar layouting strategies
but which use the default compactRepresentation, this does not happen,
as the default compact Representation explicitly sets minimum sizes.

So we do the same here; unsetting seems to work too but for consistency
we set the same minimum sizes as in the default compactRepresentation.
FIXED-IN: 6.4.2


(cherry picked from commit 74541f649f6adb6308e32f04e118771804ac3b42)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +25   -0    applet/main.qml

https://invent.kde.org/plasma/plasma-pa/-/commit/fd0568d0eb4a7a430e6789f4e7b900b1b833bd8c