Philipp Hörist pushed to branch master at gajim / gajim
Commits: 05307bd6 by Philipp Hörist at 2018-09-06T19:17:05Z Windows: Remove locked screen detection
This does not reliably tell us when the screen is locked. For example this triggers when a UAC prompt is active.
From the Windows documentation there is no way to determine
if a workstation is locked
Fixes #9117
- - - - -
1 changed file:
- gajim/common/idle.py
Changes:
===================================== gajim/common/idle.py ===================================== --- a/gajim/common/idle.py +++ b/gajim/common/idle.py @@ -168,13 +168,6 @@ class WindowsIdleMonitor: info = self.SystemParametersInfo(0x72, 0, ctypes.byref(saver_runing), 0) if info and saver_runing.value: return True - - # Check if Screen is locked - desk = self.OpenInputDesktop(0, False, 0) - if not desk: - return True - self.CloseDesktop(desk) - return False
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/05307bd6098343993b6b57544ee5fccd2a3...