Bug 497498 - Clicking on desktop icons has no effect with alignment: right and arrangement: top to bottom
Summary: Clicking on desktop icons has no effect with alignment: right and arrangement...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-12-15 12:07 UTC by Patrick Silva
Modified: 2025-01-15 15:06 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments
screen recording (756.66 KB, video/webm)
2024-12-16 20:34 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2024-12-15 12:07:59 UTC
STEPS TO REPRODUCE
1. have icons on desktop
2. align the icons on desktop to right
3. click on any icon on desktop

OBSERVED RESULT
nothing happens

EXPECTED RESULT
the click has effect

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-12-16 19:56:12 UTC
I can sort of reproduce it. with right alignment, if I move the pointer from right to left, items don't highlight, and don't respond to click. The moment I move the pointer at all from left to right, items start highlighting again and will begin responding to clicks.

Can you reproduce this, Patrick?
Comment 2 Patrick Silva 2024-12-16 20:09:02 UTC
I can't reproduce, Nate. On my system, the icons are not highlighted and clicks have no effect regardless of the direction of mouse movement.
Comment 3 Nate Graham 2024-12-16 20:14:45 UTC
That's pretty odd. Any chance you can attach a screen recording?

Does it make a difference if you set the alignment using the config window vs the desktop context menu?
Comment 4 Patrick Silva 2024-12-16 20:34:38 UTC
Created attachment 176693 [details]
screen recording

No difference between config window and desktop context menu.
Comment 5 TraceyC 2024-12-16 21:48:06 UTC
I'm not able to reproduce either the unresponsive icons -or- non-highlight with right to left pointer movement with *just*
Icons - Align - Right.
With that setting, mouse clicks and drag on icons works normally

I am able to reproduce the bug if I then set 
Icons - Arrange - Top to Bottom

I see the same behavior as in the screen recording. There's that brief flash of an outline and the up arrow as I move the cursor across an icon
Clicking on any icon does nothing
If I switch icons - Arrange back to Left to Right, they behave normally again



SOFTWARE/OS VERSIONS
Operating System: Solus Plasma
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Graphics Platform: Wayland

I'm going to build a neon unstable VM and test there 

In the meantime, Patrick, do you have any other settings applied to the desktop icons aside from
Comment 6 Akseli Lahtinen 2024-12-17 08:42:51 UTC
If I have arrangement "left to right" the icons get highlighted when i approach them with cursor from left. But if i approach from right, they wont get highlighted.

Something is wrong with the icon grid model most likely.
Comment 7 Nate Graham 2024-12-17 16:19:56 UTC
(In reply to Akseli Lahtinen from comment #6)
> If I have arrangement "left to right" the icons get highlighted when i
> approach them with cursor from left. But if i approach from right, they wont
> get highlighted.
> 
> Something is wrong with the icon grid model most likely.

I can reproduce that issue when "Arrange" is set to "left to right". If I set it to "top to bottom", then I get the worse issue that Patrick and Tracey are encountering.
Comment 8 Marco Martin 2025-01-15 09:49:02 UTC
I managed to reproduce it on a simple Qt test case, it seems an actual Qt bug: https://bugreports.qt.io/browse/QTBUG-132798
Comment 9 Bug Janitor Service 2025-01-15 12:19:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2723
Comment 10 Marco Martin 2025-01-15 12:36:45 UTC
Git commit 509b655ef2edef04a13d9afaab6349911beaaeb1 by Marco Martin.
Committed on 15/01/2025 at 12:19.
Pushed by mart into branch 'master'.

containments/desktop: properly map position to find the mouseover item

GridView.itemAt() is documented to accept coordinated in *contentItem*
coordinates. passing coordinates in view coordinates will cause items to
not
be found if contentItem position is not 0,0

With right align, the contentItem is aligned to the right edge of the
view and items are positioned from there at negative x coordinates.

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/509b655ef2edef04a13d9afaab6349911beaaeb1
Comment 11 Marco Martin 2025-01-15 13:03:24 UTC
Git commit 362e4c7027bbf9eee931235d7ec652b6900d0d95 by Marco Martin.
Committed on 15/01/2025 at 12:37.
Pushed by mart into branch 'Plasma/6.3'.

containments/desktop: properly map position to find the mouseover item

GridView.itemAt() is documented to accept coordinated in *contentItem*
coordinates. passing coordinates in view coordinates will cause items to
not
be found if contentItem position is not 0,0

With right align, the contentItem is aligned to the right edge of the
view and items are positioned from there at negative x coordinates.


(cherry picked from commit 509b655ef2edef04a13d9afaab6349911beaaeb1)

509b655e containments/desktop: properly map position to find the mouseover item

Co-authored-by: Marco Martin <notmart@gmail.com>

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

https://invent.kde.org/plasma/plasma-desktop/-/commit/362e4c7027bbf9eee931235d7ec652b6900d0d95