mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
fix
This commit is contained in:
parent
d8b3cbbd4c
commit
fa74659b3f
@ -439,6 +439,10 @@ def minmaxmoveobservefunc(self):
|
|||||||
gobject.baseobject.hwnd = None
|
gobject.baseobject.hwnd = None
|
||||||
return
|
return
|
||||||
p_pids = windows.GetWindowThreadProcessId(gobject.baseobject.hwnd)
|
p_pids = windows.GetWindowThreadProcessId(gobject.baseobject.hwnd)
|
||||||
|
if not p_pids:
|
||||||
|
# 有时候谜之没有EVENT_OBJECT_DESTROY/僵尸进程
|
||||||
|
gobject.baseobject.hwnd = None
|
||||||
|
return
|
||||||
_focusp = windows.GetWindowThreadProcessId(hwnd)
|
_focusp = windows.GetWindowThreadProcessId(hwnd)
|
||||||
if event != windows.EVENT_SYSTEM_FOREGROUND:
|
if event != windows.EVENT_SYSTEM_FOREGROUND:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user