Bug 477957

Summary: Application launcher shouldn't try to center on its button when the panel acts like a dock
Product: [Plasma] plasmashell Reporter: Rafael Lima <rafael.palma.lima>
Component: Application Launcher (Kickoff)Assignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: anassddiq2008, bugs.kde.org.facelift226, cherkaba, clay, devguy.ca, karthik.periagaram, mikel5764, nate, niccolo, noahadvs, notmart, shibisjm, veqz
Priority: NOR Keywords: qt6
Version: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=486883
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:
Attachments: Image showing the problem
the issue still here in plasma 6 stable

Description Rafael Lima 2023-12-02 23:12:55 UTC
Created attachment 163797 [details]
Image showing the problem

SUMMARY
I've just installed Plasma 6 beta and set my panel to "fit content" and "center" alignment (to act as a dock). If you click the Kickoff button, it will try to center the application launcher on the Kickoff button (see attached image).

When the panel is set like a dock, the application launcher should be either: (i) left aligned with the kickoff button or (ii) centered on the screen.

I believe the "Configure application launcher" dialog should have an option about that.

STEPS TO REPRODUCE
1. Set the panel to "fit content" and "center" alignment
2. Click the Kickoff button
3. Notice the problem as described above (and depicted in the attached image)

OBSERVED RESULT
The app launcher tries to center itself on the Kickoff button.

EXPECTED RESULT
The app launcher should either be left-aligned or centered on the screen (ideally this should be configurable).

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-37-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz
Memory: 15,5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics
Manufacturer: LENOVO
Product Name: 82CG
System Version: IdeaPad Gaming 3 15IMH05
Comment 1 Nate Graham 2023-12-05 20:44:20 UTC
In this case it's supposed to be centered on the screen, I believe. The fact that it isn't seems like a bug, possibly a regression stemming from all the plumbing work done to Panels in Plasma 6.

Can reproduce with a new blank panel that has nothing but Kickoff and an Icons-Only Task Manager on it.
Comment 2 Niccolò Venerandi 2023-12-06 23:30:58 UTC
This would be fixed by https://invent.kde.org/plasma/libplasma/-/merge_requests/990
Comment 3 Marco Martin 2023-12-07 14:39:37 UTC
is ugly when the popup is attached... when is detached... it kinda looks ok.

though indeed better to open it always in the same place otherwise it screws with muscle memory
Comment 4 Anas Mohammad Siddiq 2024-03-01 12:00:14 UTC
Created attachment 166249 [details]
the issue still here in plasma 6 stable
Comment 5 Tore Havn 2024-03-04 17:27:24 UTC
I can also confirm that this is a problem. Would prefer it to be left aligned with the launch button.
Comment 6 Niccolò Venerandi 2024-03-08 19:40:39 UTC
*** Bug 482625 has been marked as a duplicate of this bug. ***
Comment 7 Cherkah 2024-03-10 08:11:32 UTC
i can confirm if the application launcher window can be center it will be less weird visually.

so as to circumvent this we have to center the button in the "apps dock" in so far as to center the launcher panel
Comment 8 Filip 2024-05-11 11:11:05 UTC
*** Bug 483629 has been marked as a duplicate of this bug. ***
Comment 9 Niccolò Venerandi 2024-08-13 08:17:46 UTC
*** Bug 491543 has been marked as a duplicate of this bug. ***
Comment 10 Niccolò Venerandi 2024-08-19 12:38:32 UTC
Fixed in https://invent.kde.org/plasma/libplasma/-/merge_requests/990