Bug 481464

Summary: Context menu for last/lower entries is misplaced on Wayland
Product: [Applications] dolphin Reporter: Jure Repinc <jlp>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: fanzhuyifan, kfm-devel
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Display configuration
Screenshot of context menu displacement

Description Jure Repinc 2024-02-17 13:01:40 UTC
Created attachment 165898 [details]
Display configuration

SUMMARY
Using Dolphin 24.04.70 on openSUSE Tumbleweed with packages built daily from KDE git. Some more system info:
Operating System: openSUSE Tumbleweed 20240214
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600 6-Core Processor
Memory: 31.1 GiB of RAM
Graphics Processor: AMD Radeon RX 480 Graphics

I have two monitors, setup with different resolutions/sizes and different scaling settings. See attached screenshots.

STEPS TO REPRODUCE
1. Right click on any of the last entries in sidepanel (e.g. one under Devices subsection) or in the files list right after you open Dolphin. The lower you click the more context menu is displaced,

OBSERVED RESULT
Context menu opens but is misplaced, does not appear at the point where you clicked with mouse. You have to switch to another window and then back to get the context menu placed properly.

EXPECTED RESULT
Place the context menu at the point where you rightclick with mouse right away.
Comment 1 Jure Repinc 2024-02-17 13:10:15 UTC
Created attachment 165902 [details]
Screenshot of context menu displacement

I clicked on the last entry in the file list and the context menu is displaced quite a bit towards the top
Comment 2 fanzhuyifan 2024-02-18 04:56:11 UTC
Can't reproduce on master build, wayland, arch linux, with one 1920x1080 screen at 100%, and one 2560x1600 screen at 135%