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

WaylandMouseTracker.containsMouse returns false when the cursor is over ShellSurfaceItem

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes