Steps to reproduce: - enable Kscreenlocker (set a short timeout to speedup tests) - start Gwenview and enable fullscreen via F11 - Alt+Tab to some other program Although Gwenview lost focus, it still prevents the screen from locking. Especially, if you left Gwenview on another desktop, you could easily forget, that your screen won't lock, if you go away. You have to explicitly lock it manually by Ctrl+Alt+L. Don't get me wrong: blocking Kscreenlocker while in front is totally appreciated. But please release the block, if not the focused window.
Confirmed with 17.04.3 BTW: Should the version field contain the earliest version or the latest affected version?
Earliest.
same on neon dev unstable.
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Can reproduce on neon unstable. Operating System: KDE neon Unstable Edition KDE Plasma Version: 5.26.80 KDE Frameworks Version: 5.101.0 Qt Version: 5.15.7 Graphics Platform: Wayland
This appears to be intentional; Gwenview is deliberately setting an inhibition, which is listed in the Battery & Brightness widget. I guess it figures that a slideshow isn't the kind of thing during which you don't want to have your screen locked. But it could clear the inhibition when it's not the frontmost app, yeah.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/191
Git commit 3f2ea85dc50c6930b2b67f10254a598ececc05dd by Nate Graham, on behalf of Nikita Karpei. Committed on 31/03/2023 at 14:33. Pushed by ngraham into branch 'master'. Inhibit screen locking and sleep only when the app is in the foreground M +14 -0 app/mainwindow.cpp M +2 -0 app/mainwindow.h https://invent.kde.org/graphics/gwenview/commit/3f2ea85dc50c6930b2b67f10254a598ececc05dd
Git commit a2268f497fefd4277d9abc1393d48d31d63df066 by Nate Graham, on behalf of Nikita Karpei. Committed on 31/03/2023 at 14:34. Pushed by ngraham into branch 'release/23.04'. Inhibit screen locking and sleep only when the app is in the foreground (cherry picked from commit 3f2ea85dc50c6930b2b67f10254a598ececc05dd) M +14 -0 app/mainwindow.cpp M +2 -0 app/mainwindow.h https://invent.kde.org/graphics/gwenview/commit/a2268f497fefd4277d9abc1393d48d31d63df066