Bug 459121 - Chromium wayland mouse issues when using multiple monitors with different scaling
Summary: Chromium wayland mouse issues when using multiple monitors with different sc...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-14 18:41 UTC by Andres
Modified: 2022-10-29 00:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-3502-0.html (1.02 KB, text/html)
2022-09-15 10:50 UTC, Andres
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres 2022-09-14 18:41:51 UTC
SUMMARY
***
Any chromium-based browser( tried chromium and Vivaldi) has broken mouse support where the mouse pointer does not correspond with what's actually being selected in the browser

for example, if you have a link in the middle of the page, moving the cursor over the link and click while actually clicking somewhere else in the webpage (or browser interface so its not web page specific)

this happens when using multiple monitors with different scaling
***


STEPS TO REPRODUCE
1. Setup two displays with different scaling in the display settings 
2. start any chromium browser with `--enable-features=UseOzonePlatform --ozone-platform=wayland`
3. notice that the mouse cursor becomes smaller and does not align with the browser window

OBSERVED RESULT

 mouse cursor becomes smaller and does not align with the browser window
EXPECTED RESULT
 mouse cursor does not become smaller and does  align with the browser window

SOFTWARE/OS VERSIONS
Operating System: Garuda Linux
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel-Version: 5.19.8-269-tkg-bmq (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT

ADDITIONAL INFORMATION
Does not happen in firefox based browsers and does not seem reproducible in other DE

reported here
https://forum.garudalinux.org/t/chromium-wayland-mouse-issues/22788/1
and here
https://bugs.chromium.org/p/chromium/issues/detail?id=1350024&can=2&q=wayland+component%3ABlink%3EInput
as well as here
https://forum.vivaldi.net/topic/79262/wayland-broken-mouse-cursor-since-a-few-versions-ago/4?_=1663179860256
Comment 1 Andres 2022-09-14 18:45:01 UTC
forgot to explain that I original though it was linked to the chromium issue I posted but on further investigation it does not seem to be related probably should not have linked it to avoid confusion
Comment 2 Andres 2022-09-14 18:52:16 UTC
Interestingly something I just found is that moving the window between my two screens fixes the misalignment of the Vivaldi window (and regular chromium) So that seems like a good temporary workaround for now
Comment 3 Vlad Zahorodnii 2022-09-15 07:31:27 UTC
ozone has known issues when it comes to working on setups with monitors with different scale factors. If you make all outputs have same scale factor, can you reproduce the issue?
Comment 4 Andres 2022-09-15 10:50:42 UTC
Created attachment 152075 [details]
attachment-3502-0.html

No the issue goes away if i have all the displays at the same scale

On Thu, Sep 15, 2022, 3:31 AM Vlad Zahorodnii <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=459121
>
> --- Comment #3 from Vlad Zahorodnii <vlad.zahorodnii@kde.org> ---
> ozone has known issues when it comes to working on setups with monitors
> with
> different scale factors. If you make all outputs have same scale factor,
> can
> you reproduce the issue?
>
> --
> You are receiving this mail because:
> You reported the bug.
> You are on the CC list for the bug.
Comment 5 Andres 2022-10-29 00:47:10 UTC
can no longer reproduce on the latest version of Vivaldi and chrome with 5.26.2