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

Animated cursors not working on QtWayland

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0, 5.8.0
    • Fix Version/s: None
    • Component/s: QPA: Wayland
    • Labels:
      None

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mgraesslin Martin Gräßlin
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes