This commit is contained in:
恍兮惚兮 2024-08-28 02:28:48 +08:00
parent d8b3cbbd4c
commit fa74659b3f

View File

@ -439,6 +439,10 @@ def minmaxmoveobservefunc(self):
gobject.baseobject.hwnd = None
return
p_pids = windows.GetWindowThreadProcessId(gobject.baseobject.hwnd)
if not p_pids:
# 有时候谜之没有EVENT_OBJECT_DESTROY/僵尸进程
gobject.baseobject.hwnd = None
return
_focusp = windows.GetWindowThreadProcessId(hwnd)
if event != windows.EVENT_SYSTEM_FOREGROUND:
return