https://bugs.kde.org/show_bug.cgi?id=504765

cwo <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-desktop/-/commit/ |ma/plasma-desktop/-/commit/
                   |53bd4d6b9f85e1c9962fa30c703 |af1d5612caae27db6a19cfa197a
                   |c462b4b3e1a13               |e643551803f02
            Version|                            |6.8.0
  Fixed/Implemented|                            |
                 In|                            |
             Status|ASSIGNED                    |RESOLVED

--- Comment #9 from cwo <[email protected]> ---
Git commit af1d5612caae27db6a19cfa197ae643551803f02 by Christoph Wolk.
Committed on 13/08/2026 at 06:35.
Pushed by cwo into branch 'master'.

containments/desktop: accept right click without hoveredItem

The FolderView MouseEventListener, for the FolderView desktop style,
only accepts right mouse button when there is a hoveredItem. That
property is not always set if the mouse is currently hovering an
item; in particular not after a context menu closes if we have not moved
the mouse yet. This means that right-clicking an item, then dismissing
the context menu, then immediately right-clicking it again will open
the containment's context menu, not the one for the item we just right-
clicked (again). This is not a problem with FolderView applets, because
there we always accept right click.

So we also accept it for FolderView desktops. We re-check whether
something is hovered in the MouseEventListener's handler anyway, and
don't accept the event if we're not actually hovering over something, so
it gets passed to the containment anyway, even if we're not blocking it
through acceptedButtons.
FIXED-IN: 6.8.0

M  +1    -1    containments/desktop/package/contents/ui/FolderView.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/af1d5612caae27db6a19cfa197ae643551803f02

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to