Bug 444604 - Pointer misbehave on Wayland
Summary: Pointer misbehave on Wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: 5.23.1
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-29 13:32 UTC by Jean-Sébastien BEVILACQUA
Modified: 2022-08-27 04:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
list of package versions (13.26 KB, text/plain)
2021-10-29 13:32 UTC, Jean-Sébastien BEVILACQUA
Details
qdbus (6.97 KB, text/plain)
2021-10-29 18:48 UTC, Jean-Sébastien BEVILACQUA
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Sébastien BEVILACQUA 2021-10-29 13:32:50 UTC
Created attachment 143001 [details]
list of package versions

Hello, I'm using KDE on Arch Linux.
I'm on version 5.23.1-1 (you can find all packages version in the attached packages.txt file).
I have 2 external monitors connected with DisplayPort (same problem with HDMI).
The cursor jump and don't update well according to the place where it is. For example, the click is 1cm under the cursor. And when I move through context (for example in edit text mode (the bar)), the cursor doesn't update.
Sadly I don't manage to register my screen with Wayland, I tried with obs but it's not working.

I don't have this problem with X11.

STEPS TO REPRODUCE
1. Install Arch Linux with KDE
2. Connect 2 external monitors
3. Launch KDE session with Wayland

OBSERVED RESULT

Cursor jumping and not pointing to the targeted place

EXPECTED RESULT

Cursor working as expected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.23.1
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version:
Comment 1 Vlad Zahorodnii 2021-10-29 13:35:54 UTC
Can you attach the output

  qdbus org.kde.KWin /KWin supportInformation

to this bug report? Also, can you reproduce this bug when running with KWIN_FORCE_SW_CURSOR=1 environment variable?
Comment 2 Jean-Sébastien BEVILACQUA 2021-10-29 13:40:55 UTC
I finally managed to grab my screen under wayland by installing the package xdg-desktop-portal.
But it's very strange, when I capture my screen with OBS, the cursor works well in the capture but bad on my screen so I can't show you the result, unless I register the video with my phone.
Comment 3 Jean-Sébastien BEVILACQUA 2021-10-29 17:52:06 UTC
Hello Vlad, how can I set the environment variable KWIN_FORCE_SW_CURSOR ?
Because my KDE session is already setted.
Comment 4 Vlad Zahorodnii 2021-10-29 18:14:36 UTC
(In reply to Jean-Sébastien BEVILACQUA from comment #3)
> Hello Vlad, how can I set the environment variable KWIN_FORCE_SW_CURSOR ?
> Because my KDE session is already setted.

The easiest way is to add it to /etc/environment and reboot the computer
Comment 5 Jean-Sébastien BEVILACQUA 2021-10-29 18:48:37 UTC
Created attachment 143011 [details]
qdbus

I added the qdbus log
Comment 6 Jean-Sébastien BEVILACQUA 2021-10-30 13:34:30 UTC
Hello Vlad, I added KWIN_FORCE_SW_CURSOR=1 in my /etc/enviroment file and now it works great ! Thanks.
I think it should be a good idea to understand the bug in order to fix it. Someone else could have this bug too.
Can I help in debugging ?
Comment 7 Jean-Sébastien BEVILACQUA 2021-10-30 13:40:33 UTC
Note: It works great with the environment variable but I have a second cursor on top left of all my external monitors (not on the integrated monitor).
Comment 8 postix 2022-07-28 12:14:58 UTC
Can you still reproduce it with some more recent Plasma version?
Comment 9 Bug Janitor Service 2022-08-12 04:35:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Bug Janitor Service 2022-08-27 04:36:10 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!