Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48181

Animated cursors not working on QtWayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0 Alpha
    • 5.5.0, 5.8.0, 5.12.1
    • QPA: Wayland
    • None
    • 20314e67f66f9bee74438a00cde17922bd2da18a (qt/qtwayland/dev)

    Description

      Animated cursors are not working in Qt applications on --platform wayland.

      For example the following qml file should use the animated wait cursor when hovering the text:

      import QtQuick 2.1;
      import QtQuick.Layouts 1.1;
      
      Item {
          width: 200
          height: 200
      
          GridLayout {
              anchors.fill: parent
              Text {
                  text: "Wait"
                  MouseArea {
                      anchors.fill: parent
                      cursorShape: Qt.WaitCursor
                  }
              }
          }
      }
      

      On platform xcb the cursor is animated, on wayland it's just a static version. I tested with weston (1.8) and KWin (Plasma 5.5 dev branch). Running the test as an X11 application through XWayland in KWin results in an animated cursor.

      Grepping through the code shows that neither wl_cursor_frame nor wl_cursor_frame_and_duration are used.

      Attachments

        For Gerrit Dashboard: QTBUG-48181
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            mgraesslin Martin Gräßlin
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes