Don't crash on a `xdotool` timeout..

service_subpkg
Tyler Goodlet 2023-03-08 20:08:27 -05:00
parent 441243f83b
commit 6f92c6b52d
1 changed files with 8 additions and 5 deletions

View File

@ -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?')