Bug 473411

Summary: Morphing Popups effect tooltips effect corrupts QtWidgets apps' tooltips
Product: [Plasma] kwin Reporter: Guido <guido.iodice>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugreporting, guido.iodice, nate, postix
Priority: NOR    
Version: 5.27.7   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=416048
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: tooltip corruption

Description Guido 2023-08-15 11:33:39 UTC
Created attachment 160979 [details]
tooltip corruption

If the morphing tooltips effect is active, the tooltips are corrupted (see attachment)

Operating System: Manjaro Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.5.0-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 5502
Comment 1 Nate Graham 2023-08-17 18:22:05 UTC
Do you see this issue in any other apps?

Or in any other parts of Dolphin where the tooltip does not overlap with the location bar?
Comment 2 Guido 2023-08-17 18:27:46 UTC
(In reply to Nate Graham from comment #1)
> Do you see this issue in any other apps?
> 
> Or in any other parts of Dolphin where the tooltip does not overlap with the
> location bar?

Yes in any QT app, even Libreoffice. In gtk apps morphing doesn't work.
Comment 3 Nate Graham 2023-08-21 17:45:42 UTC
Thanks. Does the problem still happen if you temporarily switch to the Fusion style in System Settings > Appearance > Application Style?
Comment 4 Guido 2023-08-21 17:53:26 UTC
(In reply to Nate Graham from comment #3)
> Thanks. Does the problem still happen if you temporarily switch to the
> Fusion style in System Settings > Appearance > Application Style?

I did some experiments by turning some desktop effects on and off. I don't know precisely what changed the situation, maybe having changed the values of the blur effect, but now with Dolphin I don't have any more problems. Instead they keep having them with some applications like octopi, libreoffice, but also the systemd module of kcm.

Using fusion there continue to be these glitches. They are there even with a different user, so I don't think they depend on the configuration.
Comment 5 Nate Graham 2023-08-21 18:33:01 UTC
What if you turn off all desktop effects and compositing with Alt+Shift+F12?
Comment 6 Guido 2023-08-21 18:38:27 UTC
(In reply to Nate Graham from comment #5)
> What if you turn off all desktop effects and compositing with Alt+Shift+F12?

Of course it works, it also disables the morphing effect. That's what gives me the problem, if I disable only that there is no corruption problem, even with compositing enabled.
Comment 7 Nate Graham 2023-08-21 18:49:02 UTC
So to be clear: when you disable only the "Morphing Popups" effect, there's no problem?
Comment 8 Guido 2023-08-21 18:51:10 UTC
(In reply to Nate Graham from comment #7)
> So to be clear: when you disable only the "Morphing Popups" effect, there's
> no problem?

Yes, no corruption. Of course I lose the morphing effect, which is so beautiful and I would really hate to give it up!
Comment 9 Nate Graham 2023-08-21 18:52:32 UTC
Thanks for confirming!

*** This bug has been marked as a duplicate of bug 416048 ***
Comment 10 Vlad Zahorodnii 2024-05-02 13:36:44 UTC
*** Bug 485322 has been marked as a duplicate of this bug. ***
Comment 11 Guido 2024-05-02 13:39:15 UTC
The bug persists in Plasma 6

Operating System: Manjaro Linux 
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i5-1135G7 @ 2.40GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 5502
Comment 12 Bug Janitor Service 2024-06-09 05:52:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5861
Comment 13 David Edmundson 2024-06-11 20:08:24 UTC
Git commit d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7 by David Edmundson.
Committed on 11/06/2024 at 19:58.
Pushed by davidedmundson into branch 'master'.

effects: Drop morphing popups effect

The effect does not work very well for two main reasons:
Some clients will make a new popup rather than move an existing one, so
whether it does anything is highly unpredictable as a user.

Popups can be of massively different sizes with different amounts of
text. This means the text in the smaller popup gets resized which
doesn't look like a natural in-between state of the two popups. This
defeats the objective of looking smoother.

On top of that, it's rather glitchy.
This effect was purely visual, no functionality changes.
Related: bug 466638, bug 416048, bug 461501, bug 466637

M  +0    -1    src/plugins/CMakeLists.txt
D  +0    -1    src/plugins/morphingpopups/CMakeLists.txt
D  +0    -137  src/plugins/morphingpopups/package/contents/code/main.js
D  +0    -144  src/plugins/morphingpopups/package/metadata.json

https://invent.kde.org/plasma/kwin/-/commit/d6360cc4ce4e0d85862a4bb077b8b3dc55cd74a7