Created attachment 163507 [details] Logout confirmation with empty app list SUMMARY: Plasma always says that there are apps preventing logout even if there are none (no application windows is running and presented list of applications which prevent logout is empty) Related to: https://bugs.kde.org/show_bug.cgi?id=461176 Essentialy logout/shutdown/restart button does nothing and requires confirmation. STEPS TO REPRODUCE 1. Do not have any apps opened 2. Click on logout/shutdown/restart and confirm 3. Nothing happens for ~10 seconds 4. Popup appears saying that there are apps which prevent plasma from closing OBSERVED RESULT Plasma does not log out EXPECTED RESULT Plasma does log out if no application is preventing it SOFTWARE/OS VERSIONS Linux/KDE Plasma: Neon Unstable 20231126-1118 KDE Plasma Version: 5.81.80 (git master from neon unstable) KDE Frameworks Version: 5.245.0 (git master from neon unstable) Qt Version: 6.6.0 ADDITIONAL INFORMATION Running on real hardware, not VM.
Note that this only happens where no app windows are present. If there is at least one window and kwin/plasma manages to close it, it will log out.
Can confirm on neon unstable, wayland.
Additional thing: Kwin/Plasma only tries to close native wayland windows, but not Xwayland windows, so Xwayland app does not count as "open" in this case. I will create a separate bug report for this though.
Cannot reproduce.
I can see the issue on a code level
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4723
Git commit ff76c8581d24556ff094fd4964108dc3fc43665d by David Redondo. Committed on 28/11/2023 at 09:08. Pushed by davidre into branch 'master'. Do not wait for timer if there are no open windows If there were no open windows KWin would wait until the timer ran out and return false signifying that some windows didnt close. FIXED-IN:6.0 M +7 -0 src/sm.cpp https://invent.kde.org/plasma/kwin/-/commit/ff76c8581d24556ff094fd4964108dc3fc43665d