Bug 480096 - Incorrect tablet cursor shape for (Qt) XWayland window
Summary: Incorrect tablet cursor shape for (Qt) XWayland window
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 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-09-30 11:30 UTC (History)
2 users (show)

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


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.
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
Comment 3 Vlad Zahorodnii 2024-09-30 11:30:30 UTC
I cannot reproduce the issue either