diff --git a/piker/brokers/ib/_util.py b/piker/brokers/ib/_util.py index c7a49909..d6491ee7 100644 --- a/piker/brokers/ib/_util.py +++ b/piker/brokers/ib/_util.py @@ -177,8 +177,11 @@ def i3ipc_xdotool_manual_click_hack() -> None: ) # re-activate and focus original window - subprocess.call([ - 'xdotool', - 'windowactivate', '--sync', str(orig_win_id), - 'click', '--window', str(orig_win_id), '1', - ]) + 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?')