Bug 484263

Summary: Cursor shape changing inconsistently in GTK applications through XWayland
Product: [Plasma] kwin Reporter: Alessandro Astone <ales.astone>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: Cursor bug in gtk4-demo-application

Description Alessandro Astone 2024-03-22 17:40:31 UTC
Created attachment 167620 [details]
Cursor bug in gtk4-demo-application

SUMMARY
When running a GTK application in XWayland, through GDK_BACKEND=x11, the cursor doesn't always correctly switch between different shapes when hovering different widgets


STEPS TO REPRODUCE
1. GDK_BACKEND=x11 gtk4-demo-application
2. Hover the textbox, then hover the toolbar, repeat.

OBSERVED RESULT
Sometimes the cursor shape is a pointer while hovering the textbox, or a I-beam while hovering the toolbar.

EXPECTED RESULT
The cursor always switches to I-beam when entering the textbox, and switches back to pointer when leaving the textbox.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 40 KDE
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2024-09-30 11:39:35 UTC
I cannot reproduce the issue
Comment 2 Alessandro Astone 2024-09-30 16:18:25 UTC
I can still reproduce in 6.1.0, but not in 6.1.90; let's call it fixed!