Bug 481044 - Window previews for Firefox when playing videos with sound or streaming audio were sometimes shifted down and to the right
Summary: Window previews for Firefox when playing videos with sound or streaming audio...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 5.93.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-02-08 09:21 UTC by Matt Fagnani
Modified: 2024-03-25 19:54 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Fagnani 2024-02-08 09:21:56 UTC
SUMMARY

I'm using Plasma 5.93.0 on Wayland in a Fedora Rawhide/40 KDE Plasma installation. When I've played videos with audio on or streaming audio in Firefox 124.0a1 and 122.0 on Wayland and hovered over the task manager box for Firefox, the window text and preview were sometimes shifted down and to the right. The text of the site title or video file were sometimes cut off at the right of the popups. The window previews were sometimes cut off by the bottom and right of the popups. The volume control wasn't shown because it was below the bottom of the popup when that happened. The window preview popups sometimes were shown correctly after that when I hovered over the popup or moved the cursor. This problem seems to have started recently possibly with 5.93.0.

STEPS TO REPRODUCE
1. Boot a Fedora Rawhide/40 KDE Plasma installation updated to 2024-2-8
2. Log in to Plasma 5.93.0 on Wayland. I have the task manager set to Task manager without icons.
3. Start Firefox
4. Play an mp4 video with sound on or streaming audio in Firefox
5. Hover the cursor on and off of the task manager box for Firefox until the problem happens

OBSERVED RESULT
Window previews for Firefox when playing videos with sound or streaming audio were sometimes shifted down and to the right

EXPECTED RESULT
Window previews for Firefox when playing videos with sound or streaming audio should be shown normally every time

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide/40
(available in About System)
KDE Plasma Version: 5.93.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 fanzhuyifan 2024-02-08 17:42:35 UTC
can reproduce on wayland, default animation speed.

For me playing videos doesn't seem to be a necessary nor sufficient factor -- this just randomly happens with firefox (I did not extensively test other apps).
Comment 2 fanzhuyifan 2024-02-08 21:37:28 UTC
The horizontal offset seems to caused by Layout alignment not functioning correctly -- it disappears after removing `Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter` in 
https://invent.kde.org/plasma/plasma-desktop/-/blob/master/applets/taskmanager/package/contents/ui/ToolTipInstance.qml?ref_type=heads#L78
Comment 3 Matt Fagnani 2024-02-09 05:53:49 UTC
Thanks. This problem usually happened when I stopped moving the cursor over the Firefox task in the task manager before the window preview popups appeared. When I kept moving the cursor after the window preview popups appeared, the problem normally didn't happen or corrected itself. The initial alignment positions for Firefox previews might be off. I've only seen this problem with Firefox when video or audio are playing or paused with sound on, so the media player controls might be involved in the incorrect positioning somehow. The media player controls like play or pause were either partly cut off at the bottom of the popups or not shown at all when the problem happened. I haven't seen this problem when playing video or audio with Falkon or VLC briefly.
Comment 4 Matt Fagnani 2024-02-12 07:16:14 UTC
I'm seeing this problem with Konsole and Kate 24.01.95 in Plasma 5.93.0.
Comment 5 Vlad Zahorodnii 2024-03-25 19:38:52 UTC
Git commit 777a7803d9239c9233deebfcb506c65a406354e7 by Vlad Zahorodnii.
Committed on 25/03/2024 at 19:26.
Pushed by vladz into branch 'master'.

applets/taskmanager: Don't base the amount of space reserved for the thumbnail on the header

This addresses layouting issues, like misplaced contents sometimes. And
it makes sense to provide an explicit size rather than base it off the header.

M  +2    -2    applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/777a7803d9239c9233deebfcb506c65a406354e7
Comment 6 Vlad Zahorodnii 2024-03-25 19:54:53 UTC
Git commit b40e3a8764dc4fbfdef9fa5efecb36f88db37ae1 by Vlad Zahorodnii.
Committed on 25/03/2024 at 19:43.
Pushed by vladz into branch 'Plasma/6.0'.

applets/taskmanager: Don't base the amount of space reserved for the thumbnail on the header

This addresses layouting issues, like misplaced contents sometimes. And
it makes sense to provide an explicit size rather than base it off the header.
(cherry picked from commit 777a7803d9239c9233deebfcb506c65a406354e7)

M  +2    -2    applets/taskmanager/package/contents/ui/ToolTipInstance.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b40e3a8764dc4fbfdef9fa5efecb36f88db37ae1