Bug 454183

Summary: Right clicking towards top of Dolphin window causes right-click menu to appear in the wrong location.
Product: [Plasma] plasmashell Reporter: ointm3nt
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, kfm-devel, martin.ribotdebressac, nate, phyllon
Priority: NOR    
Version: 5.24.5   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-49663
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video of the bug being reporduced. ignore firefox, it's only there as a clean background.
the issue continues to occur on default breeze

Description ointm3nt 2022-05-21 20:33:39 UTC
Created attachment 149094 [details]
video of the bug being reporduced. ignore firefox, it's only there as a clean background.

SUMMARY
When right clicking near the top of a Dolphin menu, the right click menu appears at the right side of the screen, instead of its expected location. Please see the attached video reproducing the bug.

STEPS TO REPRODUCE
1. Open Dolphin.
2. Right click towards the bottom of the window. Observe the expected location of the menu at the cursor.
3. Right click towards the top of the window. Observe the abnormal location of the menu at the side of the screen.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
Kernel Version 5.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Phos 2022-05-22 12:44:56 UTC
Try applying the normal breeze global theme and see if it fixes this issue.
I'm on Arch Wayland too and I cannot reproduce this issue.

Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 2 ointm3nt 2022-05-22 16:47:17 UTC
Created attachment 149117 [details]
the issue continues to occur on default breeze
Comment 3 ointm3nt 2022-05-22 16:50:09 UTC
(In reply to Phos from comment #1)
> Try applying the normal breeze global theme and see if it fixes this issue.
> I'm on Arch Wayland too and I cannot reproduce this issue.

I added an attachment showing it continue to occur on the default Breeze desktop. Additionally, I figured out that this issue not only occurs in Dolphin, but also in the System Settings, as shown in the video. It seems to occur in any KDE-native right click menu. Could you move this bug report to the relevant category? I'm not sure which it would apply to now, but it's clearly not Dolphin specific. Thank you!
Comment 4 Phos 2022-05-23 02:51:17 UTC
Try deleting plasma's cache in ~/.cache/kde and restarting.
Does it fix this issue?
Comment 5 ointm3nt 2022-05-23 20:33:06 UTC
(In reply to Phos from comment #4)
> Try deleting plasma's cache in ~/.cache/kde and restarting.
> Does it fix this issue?

There wasn't a ~/.cache/kde folder, but there were a number of kde-related folders in ~/.cache (e.g. kwin, plasmashell, etc.). To make sure I got them all, I deleted every folder in ~/.cache and restarted. The bug persists with no changes. 
Notably, I recently had to format my drive and re-install everything from scratch; the issue was present both before and after doing this, occurring on both installations. So it's not an issue of temporary/cache files.
Comment 6 Bug Janitor Service 2022-06-07 04:35:52 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 ointm3nt 2022-06-11 01:27:57 UTC
sorry, forgot to mark it as reported after providing the information.
Comment 8 martin.ribotdebressac 2022-07-15 00:10:38 UTC
Reporting that this issue is occurring for me both in dolphin and also in konsole.

I have tried reapplying default breeze and also both the fedora theme and custom themes and still reproduce this bug on both applications

Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.3
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.3
Kernel Version: 5.18.10-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z170MX-Gaming 5
Comment 9 ointm3nt 2022-07-20 03:09:07 UTC
(In reply to martin.ribotdebressac from comment #8)

Thanks for the info! Perhaps this is an AMD-specific issue, since Phos is on an Intel integrated GPU, while both you and I are on an AMD 5800 series GPU. 
Notably, I've noticed that this issue occurs in the menus in LibreOffice and Kontact (referring to File, Edit, View, etc.)
Comment 10 Nate Graham 2023-04-27 21:18:37 UTC
This is a Qt issue: https://bugreports.qt.io/browse/QTBUG-49663