Created attachment 178576 [details] Picture of the issue. SUMMARY If I open Wine any app, the application launcher menu gets shifted to the middle of the screen instead of its normal position, the same issue also happens when Kate is open STEPS TO REPRODUCE 1. Open a Wine app or Kate 2. Open the application launcher OBSERVED RESULT See it shifted to the middle of the screen EXPECTED RESULT See it in the right position, and not in the middle of the screen SOFTWARE/OS VERSIONS Linux/KDE Plasma: CachyOS KDE Plasma Version: 6.3.1 KDE Frameworks Version: 6.11.0 Qt Version: 6.8.2 ADDITIONAL INFORMATION I am using Wayland
I've discovered that this issue happens when Google Chrome Unstable is installed as a flatpak is open too
(In reply to agarplayerarlon from comment #1) > I've discovered that this issue happens when Google Chrome Unstable is > installed as a flatpak is open too also I've just discovered that is happens on x11 too, so it happens both on x11 and Wayland
Note: The panel setup in the screenshot is Bottom, centered, floating, fit to content I'm not able to reproduce this on git-master with Kate. The menu appears in the same place whether it's open or no apps are open. Can you please attach another screenshot showing how the menu appears when you have no apps open (where it's in the right place)? Thanks
Created attachment 178603 [details] normal behavior
> Can you please attach another screenshot showing how the menu appears when > you have no apps open (where it's in the right place)? > Thanks added
Hmm, in fact your screenshot depicts what's supposed to be happening! What's going on here is that with a panel in "fit contents" mode, when you have enough apps open (any apps), the panel becomes wide enough that Kickoff is capable of being centered on the screen without either of its edges going beyond the panel edges. And when it can do that, it does do that.
(In reply to Nate Graham from comment #6) thank you for your answer, but isn't it a weird implementation? Because I will have the menu spawn always in different locations, sometimes more on the left of the screen, and when I have enough apps open on the panel then it automatically opens in the middle. I would prefer to have a set position of the menu, not that it automatically changes position without my "permission". For me having the separate option to set it to always spawn like in the "Picture of the issue", or to set it to always spawn it in the middle of the screen would look like a better implementation, and maybe have an "automatic" option set as default, where it keeps acting like it does now, but at least you would have the option to set it in a fixed position if you don't like the current behavior, which I don't.
Yeah, it is a bit magical, and vulnerable to the position changing when the position of the Kickoff button changes due to more apps being open. What do you think, Niccolò?
or me having the separate option to set it to always spawn like in the > "Picture of the issue", or to set it to always spawn it in the middle of the > screen I made a mistake writing, I meant the "normal behavior" picture, so that I could have an option to set it to always spawn on top of the kickoff icon (like in the "normal behavior") picture, an option to always have it spawn in the middle of the screen, and an automatic option that is a mix of the two, which is the current behavior
It seems to me that "items change their position as applications are opened or closed" is the defining characteristic of center-aligned fit-to-content panels (with widgets that change width like a task manager). If there's no apps open or pinned, the menu is going to be in the middle of the screen, and if I have 20 open it'll be way toward the corner. If the user does not want that, they should use a mode that does not do that (such as having task manager/panel left-aligned). The current behavior does not seem optimal though in that it has such a clear mode switch. I think it would make sense to have the popup (in narrow panel mode) centered on the center of the panel, rather than the center of the kickoff item (as long as there is enough space, of course. That way we would get the popup gradually shifting toward the screen edge as the number of task manager entries (/panel width) increases.
Yeah, I think that probably make sense to make the behavior deterministic.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/libplasma/-/merge_requests/1282
Git commit d77a9627464c34a529c4732ca9a54107ff90e211 by Niccolò Venerandi. Committed on 11/03/2025 at 18:56. Pushed by niccolove into branch 'master'. Center vertically/horizontally PopupPlasmaWindows when they do not fit boundaries Previously, whenever a PopupPlasmaWindow would not fit the given boundary, it would be left-aligned to the parent element. This was not intuitive and would be a significant change to when the popup could fit the boundary. For a better transition, we vertically/horizontally center align the popup to the given boundary when it's not possible to fit completely within it. M +27 -6 src/plasmaquick/transientplacementhint.cpp https://invent.kde.org/plasma/libplasma/-/commit/d77a9627464c34a529c4732ca9a54107ff90e211