Bug 482788 - Panel alignment changes when moving custom-width centre
Summary: Panel alignment changes when moving custom-width centre
Status: RESOLVED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-07 23:57 UTC by Jonas Verhofsté
Modified: 2024-12-01 23:31 UTC (History)
3 users (show)

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


Attachments
A centred, small-width panel (422.56 KB, image/png)
2024-03-07 23:57 UTC, Jonas Verhofsté
Details
The same panel, but its centre moved to the left (434.71 KB, image/png)
2024-03-07 23:57 UTC, Jonas Verhofsté
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Verhofsté 2024-03-07 23:57:03 UTC
SUMMARY
When moving the centre of a custom-width panel, it's configured Alignment changes to "Left" or "Right", depending which side you move it to. In plasma 5 it was possible to have the centre of your panel not in the centre of your screen.

STEPS TO REPRODUCE
1. Create a new panel
2. Set Alignment to Centre
3. Set Width to Custom
4. Ensure the max width of the panel is smaller than the max width of the screen
5. Try to move the centre of the panel itself

OBSERVED RESULT
The Alignment of the panel changes, and with it also it's bounding box (max and min arrows).

EXPECTED RESULT
The Alignment should stay "Centre" and the panel centre itself should move, creating an off-centre centred panel.

SOFTWARE/OS VERSIONS
Linux: Arch Linux
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Happens on both Wayland and X11
Comment 1 Jonas Verhofsté 2024-03-07 23:57:33 UTC
Created attachment 166653 [details]
A centred, small-width panel
Comment 2 Jonas Verhofsté 2024-03-07 23:57:58 UTC
Created attachment 166654 [details]
The same panel, but its centre moved to the left
Comment 3 Niccolò Venerandi 2024-03-08 19:49:55 UTC
This was actually an intentional change, though the reasoning behind it is quite technical (it was the only way to continue offer the feature when moving the panel to layer shell).
Comment 4 ratijas 2024-12-01 23:31:44 UTC
> it was the only way to continue offer the feature when moving the panel to layer shell

Are you saying that is it impossible for Wayland™ to have a centered window with an offset? And it was double-impossible to pad a window with a transparent area to imitate the offset?  Pardon me, but I kinda doubt it. Why was Plasma shell ported to some other shell that doesn't do things that Plasma is supposed to be able to?