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 *** On Wayland, if I close a window with its Application Menu active, the Application Menu is kept until I click somewhere else. STEPS TO REPRODUCE 1. System Settings -> Appearance -> Window Decorations -> Titlebar Buttons -> drag "Application menu" onto the title bar. 2. Start okular. 3. Click on the Application Menu button on the title bar. 4. Click Close button on the title bar. OBSERVED RESULT The application menu is still shown even if the window is closed. EXPECTED RESULT The application menu should close when the window closes. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.18.12-gentoo-x86_64 / 5.26.1 (available in About System) KDE Plasma Version: 5.26.1 KDE Frameworks Version: 5.99.0 Qt Version: 5.15.5 ADDITIONAL INFORMATION