Bug 449458 - Can't move system tray and the clock to corner left in RTL mode
Summary: Can't move system tray and the clock to corner left in RTL mode
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Janet Blackquill
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2022-02-01 14:10 UTC by Zayed Al-Saidi
Modified: 2024-08-28 19:26 UTC (History)
4 users (show)

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


Attachments
System tray and the clock stuck at the right corner position. (2.82 MB, image/png)
2022-02-01 14:10 UTC, Zayed Al-Saidi
Details
Steps in Video (1.08 MB, video/webm)
2022-02-02 11:05 UTC, Zayed Al-Saidi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zayed Al-Saidi 2022-02-01 14:10:42 UTC
Created attachment 146125 [details]
System tray and the clock stuck at the right corner position.

SUMMARY
***
Initially, I was using icons-Only task manager with Arabic language (i.e. RTL). It was working OK. Then I decided to switch to the Task Manager  with text. After the switch the system tray and the clock stuck in the right corner (same as LTR mode) see the attached screenshot.  Then I try to move them to the left side manually but I can't. Then I went back to the Icons-Only task manager but I get same issue. 


Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 3 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 4.9 غ.بايت of RAM
Graphics Processor: llvmpipe

ADDITIONAL INFORMATION
Comment 1 Zayed Al-Saidi 2022-02-01 14:40:02 UTC
This how it suppose to be
https://l10n.kde.org/teams/ar/screenshots/1.jpg
Comment 2 Nate Graham 2022-02-01 23:22:21 UTC
Hmm, works for me in RTL mode. What is the exact sequence of events?
Comment 3 Zayed Al-Saidi 2022-02-02 11:05:02 UTC
Created attachment 146165 [details]
Steps in Video
Comment 4 Zayed Al-Saidi 2022-02-02 11:19:38 UTC
After more investigation, I observe the following:
If I switch to English layout  and then switch back again to Arabic layout. The layout will be correct. 
If I am in the Arabic Layout, and I change the task manager  to any alternative one, I will not be able to move the system tray nor the clock to the left corner (same as video in comment 3). 

It seems the math of the new positions of widgets after the drag is not accounting for RTL mode conditions.
Comment 5 Nate Graham 2022-02-02 22:40:07 UTC
Interesting, thanks.
Comment 6 Zayed Al-Saidi 2023-05-12 09:26:41 UTC
Unfortunately, the issue is still there in:
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

I increase the importance to High because with current situation, RTL users can't rearrange the task bar. They must change to English then rearrange the task bar then comeback to RTL language.
Comment 7 Nate Graham 2023-05-14 16:57:29 UTC
Please don't change priorities; that's something developers do to prioritize work.

I can reproduce that it's weird and buggy in RTL mode (tested with `plasmashell --reverse`, but not unusable. If I drag the thing aaaaall the way to the left, I can make it appear in the correct location eventually.
Comment 8 Nate Graham 2024-08-28 19:26:04 UTC
This is now working for me as expected in current git master, soon to become Plasma 6.2.0.