Don't crash on a `xdotool` timeout..
parent
441243f83b
commit
6f92c6b52d
|
@ -177,8 +177,11 @@ def i3ipc_xdotool_manual_click_hack() -> None:
|
|||
)
|
||||
|
||||
# re-activate and focus original window
|
||||
try:
|
||||
subprocess.call([
|
||||
'xdotool',
|
||||
'windowactivate', '--sync', str(orig_win_id),
|
||||
'click', '--window', str(orig_win_id), '1',
|
||||
])
|
||||
except subprocess.TimeoutExpired:
|
||||
log.exception(f'xdotool timed out?')
|
||||
|
|
Loading…
Reference in New Issue