SUMMARY *** NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** When another application is focused, clicking the menu in a different app may cause it to appear as a window instead of a menu. This occurs when any application is focused and I right-click on the Plasma panel (Plasma 6.0, Wayland session). It also occurs in Qt 5 apps, but not GTK apps. STEPS TO REPRODUCE 1. Have any window active and right click the Plasma panel 2. Have another window active and click on a menu in a Qt 5 app (e.g. LibreOffice using the KF5 interface plugin, as is default on Fedora KDE) 3. Have another window active and click on a menu in a Qt 6, GTK 3, or GTK 4 app OBSERVED RESULT The Plasma 6 panel and Qt 5 app window will open as a window, instead of a menu. The GTK apps will open their menu as normal. EXPECTED RESULT All menus should appear as menus, not as windows SOFTWARE/OS VERSIONS Operating System: Fedora Linux 40 KDE Plasma Version: 6.0.0 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.8.0-0.rc5.41.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 3800X 8-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 570 Series Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X570 AORUS MASTER System Version: -CF ADDITIONAL INFORMATION
It happening with Qt 5 apps is a Qt bug. I can't reproduce it happening with plasmashell though
Also can't reproduce with plasmashell. As Xaver says, in Qt5 apps it's unfortunately a Qt bug.
Reopening this time with a screenshot of it happening from Plasma Shell for proof :) this happened after a few suspend-wake cycles so maybe it has something to do with that?
Created attachment 167050 [details] Plasma Shell menu opens as a window
This is happening for me as well. An added detail is that, when it happens, the two task bars on my two panels (one per monitor) start showing all windows instead of just those from their respective screens. I don't know if the two issues have the same cause but they always happen together.
Created attachment 167054 [details] My system details
Created attachment 167272 [details] LibreOffice menus sometimes show as separate windows INSTALLED: libreoffice-fresh 24.2.1-3 plasma5-integration 6.0.2-3 xdg-desktop-portal 1.18.2-1 xdg-desktop-portal-kde 6.0.2-3 xdg-user-dirs 0.18-1 xdg-utils 1.2.1-1 DETAILS: Operating System: Arch Linux KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.9-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 4 × Intel® Core™ i5-2520M CPU @ 2.50GHz Memory: 7.6 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 3000
(In reply to fin-w from comment #7) > Created attachment 167272 [details] > LibreOffice menus sometimes show as separate windows Go to Help -> About, look at "User Interface". If it says KF5, then that's caused by the upstream Qt 5 bug. I don't know if Arch packages libreoffice-kf6 (the Qt 6 UI), but it was just recently packaged for Fedora 40, so now LibreOffice uses KF6 (thus Qt 6) by default, which shouldn't have this problem (but Plasma 6's panels do, for some reason...)
LO on Arch uses kf6 since yesterday https://gitlab.archlinux.org/archlinux/packaging/packages/libreoffice-fresh/-/commit/658d1a93909be2ae3d6430036cde9da41c092277
Updating LibreOffice seems to have fixed my issue. Thanks!
*** Bug 483924 has been marked as a duplicate of this bug. ***
I can reproduce what I'm pretty sure is the same issue in the following way: 1. Open Konsole 2. Type the text "green" 3. Focus another window 4. Hover over the word "green"
*** Bug 482185 has been marked as a duplicate of this bug. ***
(In reply to Nate Graham from comment #12) > I can reproduce what I'm pretty sure is the same issue in the following way: > > 1. Open Konsole > 2. Type the text "green" > 3. Focus another window > 4. Hover over the word "green" I can reproduce it in this way as well. The wierd thing is, it only happens with the plasma panel after a while (maybe in combination with suspends as been said before in bug #482185). So since I just rebooted, I can't reproduce it right now with the panel in the usal way (focus on another window and right click the plasma panel), but I can reproduce it in your way.
This appears to be an upstream Qt issue. It'll be fixed by https://codereview.qt-project.org/c/qt/qtwayland/+/562273. Will updated this ticket with the Qt version that ends up with the fix.
That got merged; will be fixed in Qt 6.7.2.
*** Bug 485683 has been marked as a duplicate of this bug. ***
*** Bug 484334 has been marked as a duplicate of this bug. ***
(In reply to Nate Graham from comment #15) > This appears to be an upstream Qt issue. It'll be fixed by > https://codereview.qt-project.org/c/qt/qtwayland/+/562273. Will updated this > ticket with the Qt version that ends up with the fix. I applied this patch to Qt 6.7.1 but QtC popups are still drawn as normal windows.
Darn. It's possible there were other components that are only in Qt 6.7.2. Let's wait for that to be released, and if that doesn't fix it, then we'll re-open this. Thanks for checking!
(In reply to Nate Graham from comment #20) > Darn. It's possible there were other components that are only in Qt 6.7.2. > Let's wait for that to be released, and if that doesn't fix it, then we'll > re-open this. Thanks for checking! Please file an upstream ticket instead. It's not a kwin issue.
Created attachment 171827 [details] screenshot taken on Arch Linux running Qt 6.7.2 It's still reproducible on my Arch Linux running Qt 6.7.2. 1. have a folder containing some file on desktop 2. hover over the folder on desktop and click on the arrow in the upper left corner - a popup opens 3. drag the file from the popup and drop it on desktop Result: context menu with window decoration seen in the screenshot attached to this comment
It's not only a visual glitch, but if user is typing fast enough for popups to update, Qt crashes (QTBUG-126660).