mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
d8b3cbbd4c
commit
fa74659b3f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user