rules: don't select windows with no PID when looking for focus window
\#1322
This commit is contained in:
parent
4e8fb93b31
commit
d33b407ba8
|
@ -288,7 +288,7 @@ def x11_focus_prog():
|
|||
while window:
|
||||
pid = window.get_full_property(NET_WM_PID, 0)
|
||||
wm_class = window.get_wm_class()
|
||||
if wm_class:
|
||||
if wm_class and pid:
|
||||
break
|
||||
window = window.query_tree().parent
|
||||
name = psutil.Process(pid.value[0]).name() if pid else None
|
||||
|
|
Loading…
Reference in New Issue