Bug 480096

Summary: Incorrect tablet cursor shape for (Qt) XWayland window
Product: [Plasma] kwin Reporter: Nicolas Fella <nicolas.fella>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, tomtomtomreportingin
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Nicolas Fella 2024-01-20 15:03:44 UTC
Running the following QML snippet and hovering a tablet stylus over the window

---------------------
import QtQuick

Window {
    id: root
    visible: true

    HoverHandler {
        id: hovHandler
        cursorShape: Qt.PointingHandCursor
        acceptedDevices: PointerDevice.Stylus
    }

    Rectangle {
        color: hovHandler.hovered ? "teal" : "white"
        anchors.fill: parent
    }
}
---------------------

Running it Wayland-native there is only the fallback crosshair cursor (a bug, but not what this report is about)
Running it in a X11 session it shows the pointing hand cursor as expected.

Running it on Plasma Wayland forced to XWayland: It can show a variety of cursor shapes. Hovering in and out of the window sometimes switches the shape. I've seen: New-breeze arrow cursor, old-breeze arrow cursor, I-beam cursor, new-Breeze pointing hand, old-breeze pointing hand

On Gnome Wayland-native: No cursor at all (a separate bug)
On Gnome XWayland: As expected on X11
Comment 1 Nate Graham 2024-02-15 19:49:02 UTC
Can reproduce.
Comment 2 tomtomtomreportingin 2024-06-05 01:32:44 UTC
Still reproducible or could this be considered resolved? I can no longer produce this issue in Krita's case per https://bugs.kde.org/show_bug.cgi?id=469773