Bug 451212

Summary: Mouse clicks on wrong monitor with specific multi-monitor layout
Product: [Plasma] kwin Reporter: Mihai <dub2sauce>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: fanzhuyifan, nate
Priority: NOR Keywords: multiscreen
Version: 5.24.2   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0
Sentry Crash Report:
Attachments: screenshot

Description Mihai 2022-03-06 22:47:38 UTC
Created attachment 147332 [details]
screenshot

SUMMARY
In a multi monitor setup the mouse clicks on a wrong screen, making multi monitor setup useless.
Trying to screenshot(attached it here) the issue I realized one thing:
Flameshot, the screenshot software sees my monitors swapped. In reality, the monitor with the blue selection rectangle is on the right and the red circles show the location of the actual mouse cursor(the one on the right, with no selection rectangle is the true location)

I have KDE on Manjaro in a Guest VM using open-vm-tools + VMware.
I did experience this also on the host, which is also Manjaro + KDE, although I'm not experiencing it at this point on the host.

For me, the only workaround I found was to switch to Gnome or XFCE which don't appear to have these issues, although it's not much of a workaround because I miss KDE.

STEPS TO REPRODUCE
1. Start Manjaro + KDE guest VM in VMware Workstation
2. Cycle multiple monitors so it's expanded on 2 screens.

OBSERVED RESULT
Right click on the desktop and the dropdown will appear on a different screen than the one expected.

EXPECTED RESULT
Click should be in sync with actual location of pointer.

SOFTWARE/OS VERSIONS
Latest Workstation 16.2.1 build-18811642
Host: Manjaro Linux + KDE
VM: Manjaro Linux + KDE
open-vm-tools: 11.3.5-1

KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Mihai 2022-03-22 09:01:21 UTC
I just realized that if I manage to open Display Configuration, and click around until I am able to move the monitors to their real position and save it, everything works as intended.
Comment 2 Mihai 2022-03-28 12:00:45 UTC
in case anyone else is hitting this issue, I managed to find a workaround: use autorandr, which can be used to save specific monitor configurations, assuming you manage to move the monitors around in Display monitors first by predicting the mouse offset, and then saving the configuration in autorandr.
Comment 3 fanzhuyifan 2024-08-03 03:33:34 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Plasma 6.1? Thanks!
Comment 4 Bug Janitor Service 2024-08-19 03:47:25 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Mihai 2024-08-19 08:14:44 UTC
(In reply to fanzhuyifan from comment #3)
> Thank you for the bug report. Unfortunately we were not able to get to it
> yet. Can we ask you to please check if this is still an issue with Plasma
> 6.1? Thanks!

I didn't hit the bug again since I reported it, and I've been using 6.x for a while now, I would say it's fixed. We can always re-open it if necessary. Thanks!
Comment 6 Nate Graham 2024-08-20 21:14:27 UTC
Great!