Bug 502715 - [Regression] Right click menu is greatly shifted in process tables
Summary: [Regression] Right click menu is greatly shifted in process tables
Status: RESOLVED FIXED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: HI normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords: regression
: 503226 504063 504096 504140 505817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-04-12 14:57 UTC by Damglador
Modified: 2025-06-20 16:34 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0 with Qt 6.10.0 or later
Sentry Crash Report:


Attachments
Right click menu is far away from the click position (77.13 KB, image/png)
2025-04-12 14:57 UTC, Damglador
Details
misplaced context menu after right-click on a column in "Overview" page (168.67 KB, image/png)
2025-04-25 17:00 UTC, Patrick Silva
Details
on 2nd screen (107.31 KB, image/png)
2025-05-15 15:05 UTC, slartibart70
Details
overview (517.03 KB, image/png)
2025-05-19 15:43 UTC, slartibart70
Details
settings-laptop (106.76 KB, image/png)
2025-05-19 15:43 UTC, slartibart70
Details
settings-4k (96.00 KB, image/png)
2025-05-19 15:44 UTC, slartibart70
Details
coredump1 (16.44 KB, text/plain)
2025-05-19 21:35 UTC, slartibart70
Details
coredump2 (24.60 KB, text/plain)
2025-05-19 21:35 UTC, slartibart70
Details
In widget edit menu (32.58 KB, image/png)
2025-05-23 00:02 UTC, Damglador
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damglador 2025-04-12 14:57:42 UTC
Created attachment 180203 [details]
Right click menu is far away from the click position

SUMMARY
I'm not sure if this is a bug of system monitor or some library, because downgrading it to 6.3.1, in which it didn't have such an issue, didn't fix anything.

The right click menu in process tables is shifted far down-right, be it right-click on a process or table a header. See attachment

STEPS TO REPRODUCE
1. Open system monitor
2. Right-click on a process

OBSERVED RESULT
The menu is far down-right

EXPECTED RESULT
The menu should be on the cursor

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 13.5 GiB of RAM
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

ADDITIONAL INFORMATION
Comment 1 John Kizer 2025-04-14 05:39:03 UTC
Hi - for what it's worth, I can't reproduce on Fedora KDE 41 - which still has Qt 6.8.2, possibly related?
Comment 2 Nate Graham 2025-04-16 17:25:58 UTC
Cannot reproduce with git master plasma-systemmonitor but Qt 6.8.2. Could be a Qt 6.9 regression.
Comment 3 TraceyC 2025-04-23 17:26:41 UTC
I see this bug in Fedora 42 (Qt 6.9.0), but not in Plasma built from git-master (Qt 6.8.2)
There's a duplicate from someone who also has Qt 6.9.0
Comment 4 TraceyC 2025-04-23 17:26:57 UTC
*** Bug 503226 has been marked as a duplicate of this bug. ***
Comment 5 Patrick Silva 2025-04-25 17:00:42 UTC
Created attachment 180654 [details]
misplaced context menu after right-click on a column in "Overview" page

Same bug after right-click on a column in "Overview" page.

Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Graphics Platform: Wayland
Comment 6 Bug Janitor Service 2025-05-07 13:03:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-systemmonitor/-/merge_requests/356
Comment 7 cwo 2025-05-12 10:22:08 UTC
*** Bug 504063 has been marked as a duplicate of this bug. ***
Comment 8 Arjen Hiemstra 2025-05-12 11:47:25 UTC
Git commit df7f22ab23499c6a8851b3b3262d4294925a401f by Arjen Hiemstra.
Committed on 12/05/2025 at 10:08.
Pushed by ahiemstra into branch 'master'.

faces/*table: Fix positioning of context menus with Qt >= 6.9

Not entirely sure how behaviour changed here but popups ended up
incorrectly positioned with newer Qt.

M  +4    -2    src/faces/applicationstable/contents/ui/FullRepresentation.qml
M  +4    -2    src/faces/processtable/contents/ui/FullRepresentation.qml

https://invent.kde.org/plasma/plasma-systemmonitor/-/commit/df7f22ab23499c6a8851b3b3262d4294925a401f
Comment 9 postix 2025-05-12 13:02:55 UTC
*** Bug 504096 has been marked as a duplicate of this bug. ***
Comment 10 Antonio Rojas 2025-05-13 16:04:29 UTC
*** Bug 504140 has been marked as a duplicate of this bug. ***
Comment 11 slartibart70 2025-05-15 06:29:58 UTC
Hi,
i'm testing with 
plasma-systemmonitor-6.3.80~16.git7f7856f-1.fc42.x86_64

and the problem is still not resolved (although the 'fix' is in the commit-history?)`
Comment 12 Nate Graham 2025-05-15 14:54:52 UTC
It's fixed for me with that commit, also on Fedora 42. I would suspect a packaging issue with that package, unless you're still using Qt 6.8.x for some reason, in which case that's why.
Comment 13 slartibart70 2025-05-15 15:05:33 UTC
sorry to say, but no - not fixed... completely :-)

It works on a single-screen or on a multi-screen-setup if you are on the main-screen: Here for example, if opening system-monitor window on the laptop-screen (with additional +4K monitor)

If you call system-monitor on the 4K screen, then it's still broken (see attachments)

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 14 slartibart70 2025-05-15 15:05:58 UTC
Created attachment 181343 [details]
on 2nd screen
Comment 15 slartibart70 2025-05-15 15:09:42 UTC
And, if you open the window on the laptop screen (Meta-ESC) it works.
Don't close the window, move it to the 4K screen: and it still works (context-menu is at mouse-pointer position)

But, if you initially start on 4K screen with (Meta-ESC), the context-menu still opens on the far right side
Comment 16 David Redondo 2025-05-19 14:58:25 UTC
Could you please attach a screenshot of your screen arrangement? I cannot immediately reproduce with two screens.
Comment 17 slartibart70 2025-05-19 15:43:29 UTC
Created attachment 181519 [details]
overview
Comment 18 slartibart70 2025-05-19 15:43:48 UTC
Created attachment 181520 [details]
settings-laptop
Comment 19 slartibart70 2025-05-19 15:44:05 UTC
Created attachment 181521 [details]
settings-4k
Comment 20 Nate Graham 2025-05-19 20:44:46 UTC
I have almost exactly the same screens and screen arrangement (the difference being a 23" 1440p external monitor rather than 27" 4K, but otherwise the same) and I can't reproduce the issue with the fix on my system.
Comment 21 slartibart70 2025-05-19 20:46:58 UTC
how can i help any further?
even with latest updates (git), the problem is still there
Comment 22 Nate Graham 2025-05-19 20:48:38 UTC
Unclear. You're the only one who still seems to be able to reproduce the issue with the fix applied on with a multi-monitor setup, and we haven't found out what's different between your system and everyone else's
Comment 23 slartibart70 2025-05-19 21:10:41 UTC
well, maybe one thing:
the 4K monitor is attached to a thunderbolt-4 box using usb-c ?
does this help?
Comment 24 Nate Graham 2025-05-19 21:12:16 UTC
Mine is plugged in via USB-C as well, though only to a USB-C+DP+PD port in the laptop, not a Thunderbolt port.
Comment 25 slartibart70 2025-05-19 21:16:25 UTC
kscreen-doctor -o
Output: 1 eDP-1 e76f9ff2-7305-4bb4-bd07-e63d4dc45b41
        enabled
        connected
        priority 1
        Panel
        replication source:0
        Modes:  1:2880x1800@60*!  2:1920x1200@60  3:1920x1080@60  4:1600x1200@60  5:1680x1050@60  6:1280x1024@60  7:1440x900@60  8:1280x800@60  9:1280x720@60  10:1024x768@60  11:800x600@60  12:640x480@60  13:1600x1200@60  14:1280x1024@60  15:1024x768@60  16:2560x1600@60  17:1920x1200@60  18:1280x800@60  19:2880x1620@60  20:2560x1440@60  21:1920x1080@60  22:1600x900@60  23:1368x768@60  24:1280x720@60 
        Geometry: 0,0 2304x1440
        Scale: 1.25
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: disabled
        Wide Color Gamut: disabled
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 20% and dimming to 100%
        Color resolution: automatic (10), range: [8; 16] bits per color
        Allow EDR: always
Output: 2 DP-5 325a5680-6400-4830-b748-a193fd3a6cc4
        enabled
        connected
        priority 2
        DisplayPort
        replication source:0
        Modes:  25:3840x2160@60*!  26:3840x2160@30  27:1920x1200@60  28:1920x1080@60  29:1920x1080@60  30:1920x1080@60  31:1920x1080@50  32:1600x1200@60  33:1680x1050@60  34:1600x900@60  35:1280x1024@60  36:1440x900@60  37:1280x800@60  38:1280x720@60  39:1280x720@60  40:1280x720@60  41:1280x720@50  42:1024x768@60  43:800x600@60  44:720x576@50  45:720x576@50  46:720x480@60  47:720x480@60  48:720x480@60  49:720x480@60  50:640x480@60  51:640x480@60  52:640x480@60  53:720x400@70  54:1600x1200@60  55:1280x1024@60  56:1024x768@60  57:2560x1600@60  58:3200x1800@60  59:2880x1620@60  60:2560x1440@60  61:1920x1080@60  62:1600x900@60  63:1368x768@60  64:1280x720@60 
        Geometry: 2304,0 3840x2160
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: unsupported
        Color resolution: automatic (10), range: [8; 16] bits per color
        Allow EDR: unsupported
Comment 26 slartibart70 2025-05-19 21:24:38 UTC
all other context-menus are where they should be... (krusader, dolphin, others)

One more thing regarding system-monitor:
It's really only the right-click on the applications (or processes) list items.
If i click on the columns, the contextmenu is exactly at the mouse pointer position.
Even in applications, with details (sidebar on the right) enabled, right-clicking in the cpu/memory/network graphs shows the context menu spot on at the mouse-pointer.

Maybe one additional hint...as unlikely as it sounds: i'm using a left-handed mouse, so the buttons are swapped
Comment 27 Nate Graham 2025-05-19 21:26:57 UTC
Does it stop happening if you un-swap the buttons?
Comment 28 slartibart70 2025-05-19 21:31:25 UTC
no, does not change anything if mouse is right/left handed

but, i got a coredump of systemsettings (before switching mouse handedness) ... preparing logs for attachment
Comment 29 slartibart70 2025-05-19 21:35:25 UTC
Created attachment 181544 [details]
coredump1
Comment 30 slartibart70 2025-05-19 21:35:37 UTC
Created attachment 181545 [details]
coredump2
Comment 31 slartibart70 2025-05-19 21:37:12 UTC
the coredumps just happen after clicking (more than usual) in the various panels of systemmonitor.
No changes to the pages, just clicking on items, columns, switching pages and so forth
Comment 32 slartibart70 2025-05-19 21:42:48 UTC
sorry... i meant systemmonitor (not systemsettings as in comment #28)
Comment 33 Damglador 2025-05-23 00:02:55 UTC
Created attachment 181667 [details]
In widget edit menu

I encountered something similar in the widget edit mode when I hove over "Delete widget" and such buttons. But instead of being shifted to the left, it's shifted to the right
Comment 34 Nate Graham 2025-05-27 16:19:58 UTC
The remaining issue that only affects the multi-screen use case has been fixed in Qt with https://codereview.qt-project.org/c/qt/qtbase/+/648321, thanks to Vlad Zahorodnii!

If that gets backported, it'll show up in a Qt 6.9.x release eventually too. Unclear right now whether this will happen.
Comment 35 Nate Graham 2025-06-20 16:32:24 UTC
*** Bug 505817 has been marked as a duplicate of this bug. ***