Bug 480096 - Incorrect tablet cursor shape for (Qt) XWayland window
Summary: Incorrect tablet cursor shape for (Qt) XWayland window
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-20 15:03 UTC by Nicolas Fella
Modified: 2024-02-15 19:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.