SUMMARY Reproducible on both X11 and Wayland sessions. STEPS TO REPRODUCE 1. open system settings 2. right-click on the search field 3. try to dismiss the context menu by clicking outside it: the context menu remains open 4. minimize and restore system settings: the context menu is still open EXPECTED RESULT context menu should be closed when we click outside it SOFTWARE/OS VERSIONS Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.20.80 KDE Frameworks Version: 5.76.0 Qt Version: 5.15.0
Ugh, yet more focus issues in System Settings due to its hybrid QWidgets/QML nature. It will dismiss if you click on any part of the sidebar (which is all QML) but not the main view (which is QML inside of QWidgets).
*** Bug 427538 has been marked as a duplicate of this bug. ***
Identified and moved to upstream: https://bugreports.qt.io/browse/QTBUG-128935 I don't think it's worth working around locally given it's existed here for a while. It should be relatively easy to fix upstream if no-one else does it.
Made a fix for the above bug report: https://codereview.qt-project.org/c/qt/qtdeclarative/+/598375 But there's another twist, that doesn't fix the issue of clicking in another window. That needs another investigation and a new fix somewhere.