Bug 451212 - Mouse clicks on wrong monitor with specific multi-monitor layout
Summary: Mouse clicks on wrong monitor with specific multi-monitor layout
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.24.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-06 22:47 UTC by Mihai
Modified: 2022-11-14 20:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (1.65 MB, image/png)
2022-03-06 22:47 UTC, Mihai
Details

Note You need to log in before you can comment on or make changes to this bug.
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.