Bug 468955 - Triangular mouse filtering for window thumbnails does not always work in RTL mode
Summary: Triangular mouse filtering for window thumbnails does not always work in RTL ...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: regression, rtl
Depends on:
Blocks:
 
Reported: 2023-04-25 15:57 UTC by ratijas
Modified: 2025-02-19 23:53 UTC (History)
5 users (show)

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


Attachments
mouse movement (88.25 KB, image/png)
2024-06-10 14:39 UTC, Marco Martin
Details
triangle filter more or less working with ar (2.06 MB, video/webm)
2024-06-11 09:40 UTC, Marco Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2023-04-25 15:57:56 UTC
SUMMARY

In RTL mode Task Manager correctly lays out icons from right to left, but mouse filtering does not work at all.

STEPS TO REPRODUCE
1. Start Plasma with some Arabic language, e.g. LANGUAGE=ar:en_US LANG=ar_EG.UTF-8 LC_ALL= plasmashell --replace
2. Open multiple windows of the same app.
3. Hover over app and move cursor in a straight line to the window thumbnail on the left or right of it, so that cursor crosses over some other item for a split second on its path.

OBSERVED RESULT
Mouse filtering does not work, other app gets the hover, tooltip with thumbnails disappear.

EXPECTED RESULT
Mouse filtering should work and be consistent with LTR (Left-to-Right) layout direction.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2023-04-25 16:50:58 UTC
Urgh.
Comment 2 Derek Christ 2024-04-20 19:10:30 UTC
The issue can also be reproduced when the option "New tasks appear: To the right" is enabled, even without an RTL language. A vertical panel layout is also affected.

I might be able to look into this.
Comment 3 Marco Martin 2024-06-10 14:39:47 UTC
Created attachment 170343 [details]
mouse movement

I can't seem to be able to reproduce the bug: this screenshot is the plasma running with --reverse and trying to move the mouse following the red arrow, the tooltip does not disappear, what i'm i missing?
Comment 4 Nate Graham 2024-06-10 15:11:51 UTC
That exact thing is failing for me in `LANGUAGE=ar_AR plasmashell --replace` with a horizontal panel and two Dolphin windows.
Comment 5 Marco Martin 2024-06-11 09:11:55 UTC
ok, i can partially reproduce with ar_AR, the tooltip gets broken only when doing the triangular motion to the right, while doing it to the left the tooltip stays
Comment 6 Marco Martin 2024-06-11 09:40:58 UTC
Created attachment 170366 [details]
triangle filter more or less working with ar

here (on master, x11) the triangle filter more or less working with ar_AR

it seems to work more or less fine, not always triggered with the mouse movements on the screencast, but on the real world works just fine
Comment 7 Marco Martin 2024-06-11 09:59:44 UTC
(In reply to Marco Martin from comment #6)
> here (on master, x11) the triangle filter more or less working with ar_AR

in Wayland as well the triangle filter seems to be ok, this with Qt 6.8
Comment 8 Nate Graham 2024-06-13 14:31:27 UTC
Maybe it's fixed with a later Qt version? FWIW I am also having trouble reproducing the issue, here with Qt 6.7.1. Ivan, can you still reproduce the issue as originally described with a recent Qt version?
Comment 9 Nate Graham 2024-06-15 04:12:50 UTC
.
Comment 10 Bug Janitor Service 2024-06-30 03:47:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2024-07-15 03:46:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 12 ratijas 2024-08-14 01:08:46 UTC
The bug is totally valid, and now I see why.

It happens non-deterministically due to QtQuick/QML binding loops, so sometimes TriangleMouseFilter is getting stuck not covering all the Task Manager tasks. When that happens, of course the filter can not filter the events outsize its area. On my setup with an RTL locale it happens most of the time, and when it does — the TriangleMouseFilter is missing one left-most icon.