Bug 474069 - Mouse cursor updates in odd ways and is offset
Summary: Mouse cursor updates in odd ways and is offset
Status: RESOLVED DUPLICATE of bug 474039
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.7
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-02 20:25 UTC by Lassi Väätämöinen
Modified: 2023-09-05 21:40 UTC (History)
2 users (show)

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


Attachments
Mouse cursor issue in Wayland, KDE 5.27.7 (2.43 MB, video/mp4)
2023-09-04 08:35 UTC, Lassi Väätämöinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lassi Väätämöinen 2023-09-02 20:25:15 UTC
SUMMARY
Mouse cursor updates with wrond status, e.g., displays input field cursor, or window resize cursor, when it should just display ordinary arrow pointer.


STEPS TO REPRODUCE
1. Install Virtualbox 7.X (tested on 7.0.8, 7.0.10) and Guest Additions), Install KDE Neon with KDE 5.27.6
2. Update KDE from 5.27.6 to 5.27.7
3. Start KDE Wayland session 
4. Use the desktop for a while, switch away from Virtualbox to the host desktop, back to Guest OS

OBSERVED RESULT
Mouse cursor starts to behave weird in KDE Wayland after upgrading to 5.27.7

EXPECTED RESULT
Mouse cursor should behave properly, as with 5.27.6

SOFTWARE/OS VERSIONS
Virtualbox 7.0.8 and/or 7.0.10

Linux/KDE Plasma: 
KDE Neon

KDE Plasma Version: 
5.27.7


ADDITIONAL INFORMATION
The cursor is offset from the actual point, so that the center point of the arrow graphic is the actual pointed location, not the tip of the arrow.

In addition, moving cursor into specific applications, like Chrome browser, the mouse pointer visually jumps by half a pointer width.

First observed on Virtualbox 7.0.10 with KDE 5.27.7. Then I tried on Virtualbox 7.0.8 instance, with KDE 5.27.6:  OK. After installing KDE Neon upgrades and KDE 5.27.7, the issue appeared.
Comment 1 Lassi Väätämöinen 2023-09-02 20:26:22 UTC
Virtualbox host OS: Windows 10
VIrtualbox guest OS: KDE Neon
Comment 2 Lassi Väätämöinen 2023-09-04 08:16:19 UTC
The severity should be bumped, as this is a quite a big deal-breaker for trying to work with Wayland, as the user cannot point the mouse where he wants.
Comment 3 Lassi Väätämöinen 2023-09-04 08:35:27 UTC
Created attachment 161396 [details]
Mouse cursor issue in Wayland, KDE 5.27.7

In the clip you can see Konsole and Chrome, with incorrect mouse behavior.

Error in Konsole: the text entry mode cursor is NOT shown when entering to text area. The arrow pointer is used for text operations. The arrow pointer changes to text pointer, when the pointer EXITS the text area. Also, note the "jump" in the arrow.

Chrome: pointer changes to resize icon at window border, as it should. Moving a bit down and the pointer jumps. Notice also the faulty change to text entry indication, when pointer is moved out of the text area. (The pointer should be an arrow at that stage.)
Comment 4 Lassi Väätämöinen 2023-09-04 09:57:53 UTC
(In reply to Lassi Väätämöinen from comment #3)
> Created attachment 161396 [details]
> Mouse cursor issue in Wayland, KDE 5.27.7
> 
> In the clip you can see Konsole and Chrome, with incorrect mouse behavior.
> 
> Error in Konsole: the text entry mode cursor is NOT shown when entering to
> text area. The arrow pointer is used for text operations. The arrow pointer
> changes to text pointer, when the pointer EXITS the text area. Also, note
> the "jump" in the arrow.

Actually, there should be NO text entry indicator, as X11 session keeps the cursor as normal arrow all the time. in Konsole.
Comment 5 Nate Graham 2023-09-05 21:40:57 UTC
*** This bug has been marked as a duplicate of bug 474039 ***