Bug 494169

Summary: window content distortion in klipper-config dialog
Product: [Plasma] plasmashell Reporter: slartibart70
Component: ClipboardAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: akselmo, nate
Priority: NOR    
Version: 6.2.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.2
Sentry Crash Report:
Attachments: 1
2
3
4
5
6
7
8
9
10

Description slartibart70 2024-10-05 14:14:44 UTC
Problem: the clipboard config dialog behaves weirdly after opening the 'actions properties' and 'add command' and then (without adding anything) just clicking on cancel 2 times until both popyp-dialogs are closed.
Next, click on 'shortcuts' or 'action menu' and see a very strange behavior in the neighboring panel... the contents don't follow the clicks, have non-refreshed content or just 'fade in' slowly. Even the background on the clicked icon (shortcuts, actionMenu, actionsConfiguration,...) is not rendered correctly.

Please see the attached screenshots numbered accordingly to the click-sequence i did.
Th problem with the images are, that only half of the visual glitches are captured by the images. Please click for yourself for the 'full' experience...

This looks and feels like a similar bug in dolphin file-manager when having contentPreview open (F11) which is way harder to reproduce. The effects are similar: the file-view panel gets distorted and has incomplete contents
(i already filed this bug ages ago, but it got never resolved. Plasma updates only made it harder to reproduce, so there is progress, i guess? :-) 




Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 7840U w/ Radeon 780M Graphics
Memory: 58,5 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: LENOVO
Product Name: 21K5000JGE
System Version: ThinkPad P14s Gen 4
Comment 1 slartibart70 2024-10-05 14:17:40 UTC
Created attachment 174449 [details]
1
Comment 2 slartibart70 2024-10-05 14:17:59 UTC
Created attachment 174450 [details]
2
Comment 3 slartibart70 2024-10-05 14:18:23 UTC
Created attachment 174451 [details]
3
Comment 4 slartibart70 2024-10-05 14:18:33 UTC
Created attachment 174452 [details]
4
Comment 5 slartibart70 2024-10-05 14:18:42 UTC
Created attachment 174453 [details]
5
Comment 6 slartibart70 2024-10-05 14:18:54 UTC
Created attachment 174454 [details]
6
Comment 7 slartibart70 2024-10-05 14:19:05 UTC
Created attachment 174455 [details]
7
Comment 8 slartibart70 2024-10-05 14:19:15 UTC
Created attachment 174456 [details]
8
Comment 9 slartibart70 2024-10-05 14:19:25 UTC
Created attachment 174457 [details]
9
Comment 10 slartibart70 2024-10-05 14:19:36 UTC
Created attachment 174458 [details]
10
Comment 11 slartibart70 2024-10-05 14:26:28 UTC
i found the old bugreport for dolphin
https://bugs.kde.org/show_bug.cgi?id=466211

Even if this was in plasma5, those glitches are still there in plasma6 (i encountered them in plasma 6.1.x and 6.2.0)
But, they are very hard to reproduce now
Comment 12 Akseli Lahtinen 2024-10-07 10:29:31 UTC
Oh wow, I can repro the weird flickering every time, i think the steps are same as reporters:

1. Configure clipboard
2. Select actions configuration
3. Click "Add action"
4. Click "Add command"
5. Close both dialogs with cancel
6. Switch to different menus. Especially shortcuts menu gets weird.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2
Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 13 Bug Janitor Service 2024-10-16 16:43:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4844
Comment 14 David Edmundson 2024-10-16 21:25:15 UTC
Git commit 44358a8e724aeba3a4520be9ae63d6c4fec4c529 by David Edmundson.
Committed on 16/10/2024 at 21:07.
Pushed by davidedmundson into branch 'master'.

klipper: Avoid creating lots of native windows in settings dialog

Klipper's action dialog tries to resize itself, for that it needs a
QWindow. It was using an extreme call that also makes it a native window
ahead of QDialog doing it.

The dialog has a widget parent which isn't separated yet due to it not
being shown.

The current code hits a path where QWidget tries making all child
widgets of the parent widget also native windows and we get in a mess.

M  +1    -1    klipper/editactiondialog.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/44358a8e724aeba3a4520be9ae63d6c4fec4c529
Comment 15 David Edmundson 2024-10-16 21:59:55 UTC
Git commit dcb1b27d38a84f14c794504655161e23e3d43192 by David Edmundson, on behalf of David Edmundson.
Committed on 16/10/2024 at 21:42.
Pushed by davidedmundson into branch 'Plasma/6.2'.

klipper: Avoid creating lots of native windows in settings dialog

Klipper's action dialog tries to resize itself, for that it needs a
QWindow. It was using an extreme call that also makes it a native window
ahead of QDialog doing it.

The dialog has a widget parent which isn't separated yet due to it not
being shown.

The current code hits a path where QWidget tries making all child
widgets of the parent widget also native windows and we get in a mess.


(cherry picked from commit 44358a8e724aeba3a4520be9ae63d6c4fec4c529)

Co-authored-by: David Edmundson <kde@davidedmundson.co.uk>

M  +1    -1    klipper/editactiondialog.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/dcb1b27d38a84f14c794504655161e23e3d43192