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) widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: AnasSdiq, bugs.kde.org.facelift226, cherkaba, clay, devguy.ca, gazing-zero-steam, karthik.periagaram, mikel5764, nate, niccolo, noahadvs, notmart, shibisjm, veqz
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
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
Bugged again
Kicker button is next to panel edge, which makes launcher appear in the correct position
Adding a spacer to the left of kicker button triggers the bug

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
Comment 11 Sylens 2025-08-07 15:31:24 UTC
Created attachment 183859 [details]
Bugged again

Hi. This bug is happening again... See picture in my attachment

Operating System: openSUSE Tumbleweed 20250805
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.8-1-default (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3470 CPU @ 3.20GHz
Memory: 16 GiB of RAM (15.6 GiB usable)
Graphics Processor: Quadro K620
Manufacturer: FUJITSU
Product Name: ESPRIMO E510
Comment 12 Nate Graham 2025-08-08 16:22:32 UTC
Yeah, can confirm. :/
Comment 13 Sylens 2025-08-08 20:22:43 UTC
(In reply to Nate Graham from comment #12)
> Yeah, can confirm. :/

Thanks for confirming this Nate. Hope to see the patch fix soon and I also hope that it will stay fixed this time in the future, and won't regress :)

Orson
Comment 14 Synthetic451 2025-08-08 22:33:13 UTC
Having been one of the people who was affected by this bug before and now still isn't, I'd like to add that this only happens if the kicker button is not touching the edge of the panel (i.e. panel size is larger than the contents and spacer widgets are added to the left of the kicker to move it away from the panel edge).

It seems like the launcher is bounded by the panel edges instead of the kicker button location, whereas before the fix it wasn't bounded by anything but the physical screen. I will attach two screenshots showing the difference.
Comment 15 Synthetic451 2025-08-08 22:34:35 UTC
Created attachment 183894 [details]
Kicker button is next to panel edge, which makes launcher appear in the correct position
Comment 16 Synthetic451 2025-08-08 22:35:22 UTC
Created attachment 183895 [details]
Adding a spacer to the left of kicker button triggers the bug
Comment 17 Niccolò Venerandi 2025-08-20 07:26:18 UTC
There seems to be some confusion here. This bug report is about applet popups centering themselves on the panel even when the panel isn't full width; popups should instead be constrained by the panel borders.

In the two screenshots posted by Synthetic, everything looks correct: the panel is costrained by the panel border, which is what should be happening.

Similarly, in the screenshot by Sylens, this bug does not appear either, as they have a full width panel, which allows the popup to be centered in the panel. I think they are referring instead about https://bugs.kde.org/show_bug.cgi?id=499472
Comment 18 Sylens 2025-08-20 11:17:59 UTC
(In reply to Niccolò Venerandi from comment #17)
> There seems to be some confusion here. This bug report is about applet
> popups centering themselves on the panel even when the panel isn't full
> width; popups should instead be constrained by the panel borders.
> 
> In the two screenshots posted by Synthetic, everything looks correct: the
> panel is costrained by the panel border, which is what should be happening.
> 
> Similarly, in the screenshot by Sylens, this bug does not appear either, as
> they have a full width panel, which allows the popup to be centered in the
> panel. I think they are referring instead about
> https://bugs.kde.org/show_bug.cgi?id=499472

Right, however that bug report and this bug report kinda relates to each other, so I'm not sure which one is which now, since neither is a duplicate of each other, yet the problem seems the same :P