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

WaylandMouseTracker.containsMouse returns false when the cursor is over ShellSurfaceItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.3.1, 6.4.0
    • Wayland Compositor
    • None
    • Linux/Wayland

    Description

      My use-case is to display a WaylandCursorItem only when the cursor is inside my nested compositor, so I do like this:

      WaylandMouseTracker {
          id: mouseTracker
          anchors.fill: parent
          windowSystemCursorEnabled: !clientCursor.visible
      
          WaylandCursorItem {
              id: clientCursor
              inputEventsEnabled: false
              x: mouseTracker.mouseX
              y: mouseTracker.mouseY
              visible: surface !== null && mouseTracker.containsMouse
              seat: output.compositor.defaultSeat
          }
      }
      

      But mouseTracker.containsMouse returns true only when the cursor is at empty area while when the cursor is at ShellSurfaceItem, it returns false leaving me with system cursor that doesn't change when I hover client's text inputs

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              ilya-fedin Ilya Fedin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes